Re: Réf. : Re: Réf. : Debugging SPI C functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bsimon(at)loxane(dot)com
Cc: Joe Conway <mail(at)joeconway(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Réf. : Re: Réf. : Debugging SPI C functions
Date: 2005-01-13 16:05:52
Message-ID: 9531.1105632352@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

bsimon(at)loxane(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2005-01-13 16:07:12 Re: [HACKERS] Much Ado About COUNT(*)
Previous Message Tom Lane 2005-01-13 15:53:18 Re: Trace triggers