Re: [GENERAL] Embedded C function returning a set of rows

2011-02-14 Thread Merlin Moncure
On Mon, Feb 14, 2011 at 7:41 AM, Alessandro Candini wrote: > I have read http://www.postgresql.org/docs/9.0/static/xfunc-c.html, but it > is not clear to me how to implement a function which retrieve a set of rows. > In the example given it seems that I have to recall my function for every > row,

[GENERAL] Embedded C function returning a set of rows

2011-02-14 Thread Alessandro Candini
I have read http://www.postgresql.org/docs/9.0/static/xfunc-c.html, but it is not clear to me how to implement a function which retrieve a set of rows. In the example given it seems that I have to recall my function for every row, but this is not what I want. With libpq I can perform a query whi