libpq events update - Mailing list pgsql-hackers

From Andrew Chernow
Subject libpq events update
Date
Msg-id 48C138E1.4010003@esilo.com
Whole thread Raw
Responses Re: libpq events update  (Andrew Chernow <ac@esilo.com>)
List pgsql-hackers
I would like to remove the PQpassThroughData and PQresultPassThroughData 
functions.    The passThrough pointer should be added as a 3rd argument 
to the PGEventProc:

typedef int (*PGEventProc)(PGEventId evtId, void *evtInfo,  void *passThrough);

Having a public accessor function for the passThrough. doesn't seem 
helpful.  Its purpose is to be available to the eventproc, which doesn't 
require a public function.

I think it got confused with the instanceData feature, which has nothing 
to do with the event system and requires public functions.  libpqtypes 
happens to use the instanceData functions within its eventproc, but this 
is not a requirement.

All those who oppose any of the above, speak now or forever hold your 
peace.  An updated patch with full sgml documentation is coming.

-- 
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_regress inputdir
Next
From: Andrew Chernow
Date:
Subject: Re: libpq events update