Re: [GENERAL] Showing debug messages in my C function

2010-04-16 Thread Jorge Arevalo
Sorry, a mistake: > Ok, I've tested the simple example of a SRF from > http://www.postgresql.org/docs/8.4/interactive/xfunc-c.html (section > 34.9.10) and the application crash in the same way. When tries to > access SRF_IS_FIRSTCALL(), or any other PostgreSQL macro like > SRF_FIRST_CALL_INIT(), P

Re: [GENERAL] Showing debug messages in my C function

2010-04-15 Thread Jorge Arevalo
On Tue, Apr 13, 2010 at 10:04 PM, Tom Lane wrote: > Jorge Arevalo writes: >> I'm sorry, because this may be a simple question: I'm programming a C >> function that returns a set (PostgreSQL 8.4). The function crash, and >> I'm trying to >> debug it. I've read: > >> http://www.postgresql.org/docs/

Re: [GENERAL] Showing debug messages in my C function

2010-04-13 Thread Tom Lane
Jorge Arevalo writes: > I'm sorry, because this may be a simple question: I'm programming a C > function that returns a set (PostgreSQL 8.4). The function crash, and > I'm trying to > debug it. I've read: > http://www.postgresql.org/docs/8.4/interactive/xfunc-c.html > http://www.postgresql.org/do