Re: libpq object hooks (libpq events)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Chernow <ac(at)esilo(dot)com>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: libpq object hooks (libpq events)
Date: 2008-05-20 02:37:58
Message-ID: 13642.1211251078@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Andrew Chernow <ac(at)esilo(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2008-05-20 02:53:23 Re: libpq object hooks (libpq events)
Previous Message Andrew Chernow 2008-05-20 02:21:07 Re: libpq object hooks (libpq events)

Browse pgsql-patches by date

  From Date Subject
Next Message Merlin Moncure 2008-05-20 02:53:23 Re: libpq object hooks (libpq events)
Previous Message Tom Lane 2008-05-20 02:29:04 Re: Simplify formatting.c