Re: Debugging of C functions - Mailing list pgsql-general

From hamann.w@t-online.de
Subject Re: Debugging of C functions
Date
Msg-id wolfgang-1131125221528.A0129553@amadeus3.local
Whole thread Raw
In response to Debugging of C functions  ("Janek Sendrowski" <janek12@web.de>)
List pgsql-general
>> Hi,
>> �
>> How is it possible to debug user defined functions written in C.
>> I can't just include all the files and run it.
>> �
>> Does anyone have an idea?
>> �
>> Janek Sendrowski
>>

Hi,

I recall compiling with debug as normal, adding a printf followed by 30 sec sleep, and
use the pause to attach gdb.
If it is at all possible, you should try to run the database in single mode rather than
normal server operation

Regards
Wolfgang Hamann



pgsql-general by date:

Previous
From: Joshua Boyd
Date:
Subject: Re: Easiest way to CREATE EXTENSION when upgrading from 9.0 to 9.2?
Next
From: Nelson Green
Date:
Subject: Inserting rows containing composite foreign keys