Re: Réf. : Re: Réf - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Réf. : Re: Réf
Date
Msg-id 20050113163756.GA14874@dcc.uchile.cl
Whole thread Raw
In response to Réf. : Re: Réf. : Debugging SPI Cfunctions  (bsimon@loxane.com)
List pgsql-general
On Thu, Jan 13, 2005 at 04:23:29PM +0100, bsimon@loxane.com wrote:

> Then I have a C (libpq) client program that calls my spi functions like
> this :
>
> PQExec(conn,"SELECT mySpiFunction()");
>
>  the problem is ->  I can't step into this line !

Of course not.  The processing is done server side, so the debugging
should occur server side too.  You have to connect GDB with the backend
serving the connection, and step through function execution there.

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"La experiencia nos dice que el hombre peló millones de veces las patatas,
pero era forzoso admitir la posibilidad de que en un caso entre millones,
las patatas pelarían al hombre" (Ijon Tichy)

pgsql-general by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: [HACKERS] Much Ado About COUNT(*)
Next
From: Terry Lee Tucker
Date:
Subject: Re: Trace triggers