Re: debugging PostgreSQL - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: debugging PostgreSQL
Date
Msg-id 20041109171015.GC9935@surnet.cl
Whole thread Raw
In response to debugging PostgreSQL  (gevik@xs4all.nl)
List pgsql-hackers
On Tue, Nov 09, 2004 at 09:16:34AM +0100, gevik@xs4all.nl wrote:

> Could someone be so kind to give me some pointers about how
> to debug pg. I would like to know which debugger you use under windows and
> linux

GDB.  The mechanism is simple: start a connection, and in a terminal
window get the backend's PID with ps(1), then call gdb -p <pid>.

I assume this would also work with other debuggers or GDB frontends, but
I haven't tried.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El número de instalaciones de UNIX se ha elevado a 10,
y se espera que este número aumente" (UPM, 1972)



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Reorganization of the translation files
Next
From: Simon Riggs
Date:
Subject: Re: Call for objections: simplify stable functions