Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 8AE8E2E003B for ; Mon, 19 May 2008 23:38:05 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 69588-02 for ; Mon, 19 May 2008 23:37:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id 5C9AC2E0037 for ; Mon, 19 May 2008 23:38:02 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m4K2bwXR013643; Mon, 19 May 2008 22:37:58 -0400 (EDT) To: Andrew Chernow cc: Merlin Moncure , Andrew Dunstan , Alvaro Herrera , "Patches (PostgreSQL)" Subject: Re: libpq object hooks (libpq events) In-reply-to: <48323593.4060302@esilo.com> References: <482A58D8.2030205@dunslane.net> <20080514043313.GS6966@alvh.no-ip.org> <482AD896.4000504@dunslane.net> <19342.1210776271@sss.pgh.pa.us> <482B1480.1070705@esilo.com> <482B2AC5.7000503@esilo.com> <482ECF62.7010901@esilo.com> <12200.1211242959@sss.pgh.pa.us> <48323593.4060302@esilo.com> Comments: In-reply-to Andrew Chernow message dated "Mon, 19 May 2008 22:21:07 -0400" Date: Mon, 19 May 2008 22:37:58 -0400 Message-ID: <13642.1211251078@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/394 X-Sequence-Number: 6420 Andrew Chernow 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