Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id C48C72E0188 for ; Wed, 14 May 2008 11:54:19 -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 08420-06 for ; Wed, 14 May 2008 11:54:02 -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 6375A2E0191 for ; Wed, 14 May 2008 11:44:36 -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 m4EEiV6H019343; Wed, 14 May 2008 10:44:31 -0400 (EDT) To: Andrew Dunstan cc: Alvaro Herrera , Merlin Moncure , "Patches (PostgreSQL)" , Andrew Chernow Subject: Re: libpq object hooks In-reply-to: <482AD896.4000504@dunslane.net> References: <482A58D8.2030205@dunslane.net> <20080514043313.GS6966@alvh.no-ip.org> <482AD896.4000504@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Wed, 14 May 2008 08:18:30 -0400" Date: Wed, 14 May 2008 10:44:31 -0400 Message-ID: <19342.1210776271@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/238 X-Sequence-Number: 6264 Andrew Dunstan writes: > It should be noted that while this feels slightly foreign, it isn't > hugely invasive, unlike the previous effort - it's only a few hundred > lines of new code. > If we reject this, presumably the authors will have no alternative than > to offer libpqtypes as a patch to libpq. No, they could revise their patch to be more stylistically in keeping with libpq. I haven't looked at the current version of the patch yet, but the early versions seemed quite overengineered to me, so your criticism didn't surprise me. >> Keep in mind that the original patch supported a single hook being >> registered. > Right, it was more the case insensitive part that bothered me. I'm wondering why the hooks need names at all. AFAICS all that libpq needs to know about a hook is a callback function address and a void * passthrough pointer. regards, tom lane