Re: Documentation and mutating PGresult objects

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Documentation and mutating PGresult objects
Date: 2012-01-05 15:53:49
Message-ID: 15209.1325778829@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> "PGresult objects are read-only after creation, and so can be passed
> around freely between threads."
> From http://www.postgresql.org/docs/9.1/static/libpq-threading.html

That's not what it says now.

Author: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Branch: master [0de93a9c6] 2011-12-02 11:33:53 -0500
Branch: REL9_1_STABLE [1cd1a7c10] 2011-12-02 11:34:14 -0500
Branch: REL9_0_STABLE [8af71fc56] 2011-12-02 11:34:20 -0500
Branch: REL8_4_STABLE Release: REL8_4_10 [c2e412ad4] 2011-12-02 11:34:26 -0500

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.

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Josh Berkus 2012-01-12 20:04:39 Cannot build docs on Ubuntu 10.04?
Previous Message Dmitriy Igrishin 2012-01-05 15:47:57 Re: Documentation and mutating PGresult objects