Re: [GENERAL] libpq and Datums management with embedded C function

2011-02-18 Thread Merlin Moncure
On Fri, Feb 18, 2011 at 2:04 AM, Alessandro Candini wrote: >> On Thu, Feb 17, 2011 at 4:16 AM, Alessandro Candini >>  wrote: >>> >>> I'm dealing witch a C function embedded into postgresql-9.0.2. >>> >>> I'm returning a set of rows and following the example here >>> http://www.postgresql.org/docs/

Re: [GENERAL] libpq and Datums management with embedded C function

2011-02-18 Thread Alessandro Candini
I see that dblink is 2500 lines more or less... Is there anyone how to set up correctly the 2 lines I posted before? I will explore SPI anyway hoping it will gett my life easier... On Thu, Feb 17, 2011 at 4:16 AM, Alessandro Candini wrote: I'm dealing witch a C function embedded into postgres

Re: [GENERAL] libpq and Datums management with embedded C function

2011-02-17 Thread Merlin Moncure
On Thu, Feb 17, 2011 at 4:16 AM, Alessandro Candini wrote: > I'm dealing witch a C function embedded into postgresql-9.0.2. > > I'm returning a set of rows and following the example here > http://www.postgresql.org/docs/9.0/static/xfunc-c.html everything works > fine, but only if I use the C strin

[GENERAL] libpq and Datums management with embedded C function

2011-02-17 Thread Alessandro Candini
I'm dealing witch a C function embedded into postgresql-9.0.2. I'm returning a set of rows and following the example here http://www.postgresql.org/docs/9.0/static/xfunc-c.html everything works fine, but only if I use the C string approach. I'm using libpq to retrieve data and something like