Re: libpq patch for pqtypes hook api and PGresult creation - Mailing list pgsql-patches

From Merlin Moncure
Subject Re: libpq patch for pqtypes hook api and PGresult creation
Date
Msg-id b42b73150804111057o255ab305ved7d3840ad65acf@mail.gmail.com
Whole thread Raw
In response to libpq patch for pqtypes hook api and PGresult creation  (Andrew Chernow <ac@esilo.com>)
Responses Re: libpq patch for pqtypes hook api and PGresult creation
List pgsql-patches
On Fri, Apr 11, 2008 at 1:47 PM, Andrew Chernow <ac@esilo.com> wrote:
> Here are the changes to libpq.  It adds the ability to register an Object
> Hook and create a home-grown result.  Patch adds 4 functions.
>
>  We changed the name of PQresultSetFieldValue to PQsetvalue, which better
> compliments PQgetvalue.  If this patch is acceptable, we will move on to
> making the required changes to pqtypes; some work has already been done.

Whoops! One missing thing here...we forgot to make pqResultAlloc
pubilc...pqResultAlloc -> PQresultAlloc (see discussion in -hackers).
Also, we could use pqResultStrdup (or keep it private, in which case
we can re-implement in libpqtypes).

merlin

pgsql-patches by date:

Previous
From: Andrew Chernow
Date:
Subject: libpq patch for pqtypes hook api and PGresult creation
Next
From: Andrew Chernow
Date:
Subject: libpq Win32 Mutex performance patch