Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I do use gdb with eclipse but I don't manage to enter the source code of my spi C functions.

Suppose I have a SPI functions that :

1) connects to the db (SPIConnect)
2) Executes a simple select (SPIExec)
3) Writes result of the select in a text file
4) disconnects from the db (SPIFinish)

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 !

We have many  C SPI functions registered on our server, I just would like to find a way to debug them ...

Thanks.

Benjamin.




Joe Conway <mail@xxxxxxxxxxxxx>

13/01/2005 16:08

       
        Pour :        bsimon@xxxxxxxxxx
        cc :        pgsql-general@xxxxxxxxxxxxxx
        Objet :        Re: Réf. : Debugging SPI C functions



bsimon@xxxxxxxxxx wrote:
> Aren't there any way to debug server programming functions (whatever the
> language) ??

What's wrong with gdb?

Joe



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux