Re: PQdeleteTuple function in libpq - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: PQdeleteTuple function in libpq
Date
Msg-id BANLkTikCxdeBsEBbWOLQXSkLXnuMRVqPug@mail.gmail.com
Whole thread Raw
In response to Re: PQdeleteTuple function in libpq  (Pavel Golub <pavel@microolap.com>)
List pgsql-hackers
On Thu, Jun 2, 2011 at 3:24 AM, Pavel Golub <pavel@microolap.com> wrote:
> MM> well, you have PQaddTuple, but this was exposed mainly for the purpose
> MM> of building a PQresult from outside the libpq library -- not so much
> MM> to remove the 'constness' property of the PGResult.  I have no
> MM> philosophical objection to making the PGresult able to be manipulated
> MM> in that fashion (although others might).
>
> From this point of view why we have PQmakeEmptyPGresult, PQcopyResult,
> PQsetResultAttrs, PQsetvalue and PQresultAlloc? If we have these
> functions I suppose we must have one more to delete (or hide) some
> tuples/attributes.

These functions were basically supported for libpqtypes -- a libpq
wrapping library that needed to be able to construct a result outside
of libpq...libpqtypes uses the result api to expose arrays and
composite types sent over the wire from the server.  However, once
generated the result is basically immutable.

merlin


pgsql-hackers by date:

Previous
From: Radosław Smogura
Date:
Subject: Re: BLOB support
Next
From: Robert Haas
Date:
Subject: Re: Re: patch review : Add ability to constrain backend temporary file space