Re: Executing a query and returning the result set using the SPI

From: Richard Huxton <dev(at)archonet(dot)com>
To: Nuno Morgadinho <l13591(at)alunos(dot)uevora(dot)pt>, pgsql-general(at)postgresql(dot)org
Subject: Re: Executing a query and returning the result set using the SPI
Date: 2004-01-27 09:43:32
Message-ID: 200401270943.32217.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2004-01-27 09:45:39 Re: crlf and copy
Previous Message V i s h a l Kashyap @ [Sai Hertz And Control Systems] 2004-01-27 09:42:34 Re: Reloading Template1