pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dmitriy Igrishin <dmitigr@gmail.com>
Cc: pgsql-docs <pgsql-docs@postgresql.org>
Subject: Re: Misinformation in 31.18 chapter.
Date: Fri, 02 Dec 2011 11:37:10 -0500
Message-ID: <18798.1322843830@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAfz9KNYSS2EeY2RzDUwkd+yb0kk6sD5PM3yHFdyn5b8hK-uWQ@mail.gmail.com>
References: <CAAfz9KNYSS2EeY2RzDUwkd+yb0kk6sD5PM3yHFdyn5b8hK-uWQ@mail.gmail.com>

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



view thread (2+ messages)

Message-ID: <18798.1322843830@sss.pgh.pa.us>
Permalink:  ../18798.1322843830@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18798.1322843830@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dmitigr@gmail.com
  Subject: Re: Misinformation in 31.18 chapter.
  In-Reply-To: <18798.1322843830@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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