Commit 0de93a9c authored by Tom Lane's avatar Tom Lane

Add some weasel wording about threaded usage of PGresults.

PGresults used to be read-only from the application's viewpoint, but now
that we've exposed various functions that allow modification of a PGresult,
that sweeping statement is no longer accurate.  Noted by Dmitriy Igrishin.
parent 1e616f63
...@@ -7197,8 +7197,12 @@ int PQisthreadsafe(); ...@@ -7197,8 +7197,12 @@ int PQisthreadsafe();
</para> </para>
<para> <para>
<structname>PGresult</> objects are read-only after creation, and so <structname>PGresult</> objects are normally read-only after creation,
can be passed around freely between threads. and so can be passed around freely between threads. However, if you use
any of the <structname>PGresult</>-modifying functions described in
<xref linkend="libpq-misc"> or <xref linkend="libpq-events">, it's up
to you to avoid concurrent operations on the same <structname>PGresult</>,
too.
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment