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

From Tom Lane
Subject Re: libpq object hooks (libpq events)
Date
Msg-id 13642.1211251078@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq object hooks (libpq events)  (Andrew Chernow <ac@esilo.com>)
Responses Re: libpq object hooks (libpq events)
Re: libpq object hooks (libpq events)
List pgsql-patches
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.

> Adding PQresultSetInstanceData doesn't removes the need for a resultcreate
> callback event.

No, of course not.  What I was imagining was that the resultcreate
callback would call PQresultSetInstanceData.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Simplify formatting.c
Next
From: "Merlin Moncure"
Date:
Subject: Re: libpq object hooks (libpq events)