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

From: bsimon(at)loxane(dot)com
To: Joe Conway <mail(at)joeconway(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Réf. : Re: Réf. : Debugging SPI C functions
Date: 2005-01-13 15:23:29
Message-ID: OF9BEF6E40.80AF0F97-ONC1256F88.00539F9B-C1256F88.00546246@beauchamp.loxane.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(at)joeconway(dot)com>
13/01/2005 16:08


Pour : bsimon(at)loxane(dot)com
cc : pgsql-general(at)postgresql(dot)org
Objet : Re: Réf. : [GENERAL] Debugging SPI C functions

bsimon(at)loxane(dot)com wrote:
> Aren't there any way to debug server programming functions (whatever the

> language) ??

What's wrong with gdb?

Joe

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2005-01-13 15:44:56 Re: vacuum vs open transactions
Previous Message Dave Smith 2005-01-13 15:13:30 Re: Adding UNIQUE constraint on NULL column