Search Postgresql Archives

Réf. : Re: Réf. : Re: Réf. : [GENERAL] Debugging SPI C functions

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

 




wouah. Ok. Looks like programming deficient skills ... :)
Thank you.

By the way,
I have been using DB2 and its Call Level Interface (CLI) API and it was great because you have the same API (based onb ODBC) for writing server side stored procedures and external functions.
I guess that's why I was a bit confused with SPI.
Could be cool to move this into Postgresql ?


Benjamin.



Tom Lane <tgl@xxxxxxxxxxxxx>

13/01/2005 17:05

       
        Pour :        bsimon@xxxxxxxxxx
        cc :        Joe Conway <mail@xxxxxxxxxxxxx>, pgsql-general@xxxxxxxxxxxxxx
        Objet :        Re: Réf. : Re: Réf. : Debugging SPI C functions



bsimon@xxxxxxxxxx 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



[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