debugging PostgreSQL

Started by Nonameabout 21 years ago2 messages
#1Noname
gevik@xs4all.nl

Dear Folks,

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

Regards,
Gevik

#2Alvaro Herrera
alvherre@dcc.uchile.cl
In reply to: Noname (#1)
Re: debugging PostgreSQL

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)