8000 Add some weasel wording about threaded usage of PGresults. · jandas/postgres@c2e412a · GitHub
[go: up one dir, main page]

Skip to content

Commit c2e412a

Browse files
committed
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.
1 parent d08b645 commit c2e412a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6607,8 +6607,12 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
66076607
</para>
66086608

66096609
<para>
6610-
<structname>PGresult</> objects are read-only after creation, and so
6611-
can be passed around freely between threads.
6610+
<structname>PGresult</> objects are normally read-only after creation,
6611+
and so can be passed around freely between threads. However, if you use
6612+
any of the <structname>PGresult</>-modifying functions described in
6613+
<xref linkend="libpq-misc"> or <xref linkend="libpq-events">, it's up
6614+
to you to avoid concurrent operations on the same <structname>PGresult</>,
6615+
too.
66126616
</para>
66136617

66146618
<para>

0 commit comments

Comments
 (0)
0