Обсуждение: debugging PostgreSQL

Поиск
Список
Период
Сортировка

debugging PostgreSQL

От
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


Re: debugging PostgreSQL

От
Alvaro Herrera
Дата:
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)