Re: Debugging of C functions

From: hamann(dot)w(at)t-online(dot)de
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Debugging of C functions
Date: 2013-11-25 21:15:28
Message-ID: wolfgang-1131125221528.A0129553@amadeus3.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nelson Green 2013-11-25 22:01:14 Inserting rows containing composite foreign keys
Previous Message Joshua Boyd 2013-11-25 21:07:21 Re: Easiest way to CREATE EXTENSION when upgrading from 9.0 to 9.2?