pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Misinformation in 31.18 chapter.
2+ messages / 2 participants
[nested] [flat]

* Misinformation in 31.18 chapter.
@ 2011-12-02 09:15 Dmitriy Igrishin <dmitigr@gmail.com>
  2011-12-02 16:37 ` Re: Misinformation in 31.18 chapter. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Dmitriy Igrishin @ 2011-12-02 09:15 UTC (permalink / raw)
  To: pgsql-docs

Hey,

According to 31.18,
http://www.postgresql.org/docs/9.1/static/libpq-threading.html
"PGresult objects are read-only after creation, and so can be passed around
freely between threads."

But PGresult objects are *not* read-only because of existence of
PQsetvalue() described in
http://www.postgresql.org/docs/9.1/static/libpq-misc.html

-- 
// Dmitriy.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Misinformation in 31.18 chapter.
  2011-12-02 09:15 Misinformation in 31.18 chapter. Dmitriy Igrishin <dmitigr@gmail.com>
@ 2011-12-02 16:37 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2011-12-02 16:37 UTC (permalink / raw)
  To: Dmitriy Igrishin <dmitigr@gmail.com>; +Cc: pgsql-docs

Dmitriy Igrishin <dmitigr@gmail.com> writes:
> According to 31.18,
> http://www.postgresql.org/docs/9.1/static/libpq-threading.html
> "PGresult objects are read-only after creation, and so can be passed around
> freely between threads."

> But PGresult objects are *not* read-only because of existence of
> PQsetvalue() described in
> http://www.postgresql.org/docs/9.1/static/libpq-misc.html

Good point ... and the "event" stuff can modify the state of a PGresult,
too.  I've updated that statement accordingly.  Thanks for the note.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-12-02 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-12-02 09:15 Misinformation in 31.18 chapter. Dmitriy Igrishin <dmitigr@gmail.com>
2011-12-02 16:37 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox