Re: Réf. : Re: Réf. : Debugging SPI Cfunctions - Mailing list pgsql-general

From Tom Lane
Subject Re: Réf. : Re: Réf. : Debugging SPI Cfunctions
Date
Msg-id 9531.1105632352@sss.pgh.pa.us
Whole thread Raw
In response to Réf. : Re: Réf. : Debugging SPI Cfunctions  (bsimon@loxane.com)
List pgsql-general
bsimon@loxane.com writes:
> Then I have a C (libpq) client program that calls my spi functions like=20
> this :
> PQExec(conn,"SELECT mySpiFunction()");=20
>  the problem is ->  I can't step into this line !

Of course not --- the execution of mySpiFunction is in a different
process.  You need to set up a second instance of gdb that's attached
to the postgres backend process your application is using.

            regards, tom lane

pgsql-general by date:

Previous
From: Lonni J Friedman
Date:
Subject: allowing connections from additional hosts without a restart?
Next
From: "Ed L."
Date:
Subject: Re: vacuum vs open transactions