Re: libpq object hooks (libpq events) - Mailing list pgsql-patches

From Merlin Moncure
Subject Re: libpq object hooks (libpq events)
Date
Msg-id b42b73150805191953t1ca371c9g2387a104cf03b828@mail.gmail.com
Whole thread Raw
In response to Re: libpq object hooks (libpq events)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
On Mon, May 19, 2008 at 10:37 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Andrew Chernow <ac@esilo.com> writes:
>> 4. add a setter for result instance data
>>    - There should also be a PQsetInstanceData(PGconn*, ...)
>>    - I see no need for a passThrough setter
>
> Check, though I assume we're not expecting PQsetInstanceData to
> propagate to previously created PGresults?
>
>> 5. move callback stuff to its own header, maybe pgcallback.h?
>
> Should be libpq-something.  I was considering libpq-hooks.h or
> libpq-events.h, but libpq-callback.h would be OK too.

I think 'events' best describes what is going on.  Your other
suggestions are improvements (we maybe tried a little too hard to
minimize exports).  Losing the global hooks is no problem (it was
basically syntax sugar).

merlin

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpq object hooks (libpq events)
Next
From: Andrew Chernow
Date:
Subject: Re: libpq object hooks (libpq events)