Received: from feivel.fam-meskes.de (p3E9B98E0.dip0.t-ipconnect.de [62.155.152.224]) by hub.org (8.9.3/8.9.3) with ESMTP id DAA73860 for ; Tue, 15 Feb 2000 03:09:35 -0500 (EST) (envelope-from michael@fam-meskes.de) Received: by feivel.fam-meskes.de (Postfix, from userid 1000) id 413762BC5E; Mon, 14 Feb 2000 21:44:05 +0100 (CET) Date: Mon, 14 Feb 2000 21:44:05 +0100 From: Michael Meskes To: pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] libpq patch for binding tuples in a result set to user allocated memory Message-ID: <20000214214405.A1104@fam-meskes.de> Mail-Followup-To: pgsql-interfaces@postgresql.org References: <20000214095958.C8823@support.ddiworld.com> <18990.950543823@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <18990.950543823@sss.pgh.pa.us>; from tgl@sss.pgh.pa.us on Mon, Feb 14, 2000 at 10:57:03AM -0500 Sender: michael@fam-meskes.de On Mon, Feb 14, 2000 at 10:57:03AM -0500, Tom Lane wrote: > > "libpq" like API's buffers to my memory locations) in my days working > > with ODBC, Oracle & SQLServer's C-API, i created the following patch > > which i thought i'd submit. I've included a README as well. Something like that is possible with ECPG. Just give use an arraypointer as variable and set it to NULL. After fetching the date it contains the data, the memory is allocated by libecpg. Not exactly what you are talking about but similar. Michael -- Michael Meskes | Go SF 49ers! Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire! Tel.: (+49) 2431/72651 | Use Debian GNU/Linux! Email: Michael@Fam-Meskes.De | Use PostgreSQL!