Re: Executing a query and returning the result set using the SPI - Mailing list pgsql-general

From Richard Huxton
Subject Re: Executing a query and returning the result set using the SPI
Date
Msg-id 200401270943.32217.dev@archonet.com
Whole thread Raw
In response to Executing a query and returning the result set using the SPI  (Nuno Morgadinho <l13591@alunos.uevora.pt>)
List pgsql-general
On Monday 26 January 2004 18:37, Nuno Morgadinho wrote:
> Hello all,
>
> I'm messing around with the Server Programming Interface and the
> particular example presented at:
>
> http://www.postgresql.org/docs/current/interactive/spi-examples.html
>
> Ideally, I would want to make the example function return the
> information as a "set" and not through elog() so I can later access it
> and print it using PHP.

Don't do C functions myself, but I believe you might find the code in
/contrib/tablefunc useful

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: "V i s h a l Kashyap @ [Sai Hertz And Control Systems]"
Date:
Subject: Re: Reloading Template1
Next
From: Richard Huxton
Date:
Subject: Re: crlf and copy