pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Chernow <ac@esilo.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Merlin Moncure <mmoncure@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: libpq object hooks (libpq events)
Date: Wed, 03 Sep 2008 13:14:03 -0400
Message-ID: <48BEC5DB.7000601@esilo.com> (raw)
In-Reply-To: <20080903165544.GA4114@alvh.no-ip.org>
References: <482B1480.1070705@esilo.com>
	<482B2AC5.7000503@esilo.com>
	<482ECF62.7010901@esilo.com>
	<12200.1211242959@sss.pgh.pa.us>
	<48323593.4060302@esilo.com>
	<13642.1211251078@sss.pgh.pa.us>
	<48323F94.6010201@esilo.com>
	<48325386.2010506@esilo.com>
	<20080903001920.GT12610@alvh.no-ip.org>
	<48BE0424.4080905@esilo.com>
	<20080903165544.GA4114@alvh.no-ip.org>

Alvaro Herrera wrote:
> Andrew Chernow escribió:
>> Alvaro Herrera wrote:
> 
>>> (I also removed PQresultAlloc.)
>> Nooooooo ... removing PQresultAlloc breaks libpqtypes!  It also removes 
>> some of the use cases provided by PQsetvalue, which allows one to add to 
>> a result (in our case from scratch).
> 
> I don't really see the point -- it's the same as pqResultAlloc, except
> that you have to pass an extra argument.  There's no actual
> functionality loss.
> 

libpqtypes uses it.  libpqtypes doesn't have access to any internals of 
libpq, including pqResultAlloc.  So, I made a public wrapper to the 
internal version.  The point is to provide public access to the result 
allocator.

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



view thread (15+ messages)

Message-ID: <48BEC5DB.7000601@esilo.com>
Permalink:  ../48BEC5DB.7000601@esilo.com/
Also on:    postgresql.org/message-id/48BEC5DB.7000601@esilo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-patches@postgresql.org
  Cc: ac@esilo.com, alvherre@commandprompt.com, mmoncure@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: libpq object hooks (libpq events)
  In-Reply-To: <48BEC5DB.7000601@esilo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox