Thread: running bdg on postgresql`

running bdg on postgresql`

From
"Jenny -"
Date:
hi ,
iam trying to run gdb on postgresql to stack-trace the functions that get
called  when a lock is taken.
>gdb *program*
what do i pass in place of program inorder to run gdb on postgresqql
thanks
jenny

_________________________________________________________________
Get MSN 8 and help protect your children with advanced parental controls.
http://join.msn.com/?page=features/parental


Re: [HACKERS] running bdg on postgresql`

From
Alvaro Herrera
Date:
On Thu, Aug 28, 2003 at 02:11:26PM -0700, Jenny - wrote:
> hi ,
> iam trying to run gdb on postgresql to stack-trace the functions that get
> called  when a lock is taken.
> >gdb *program*
> what do i pass in place of program inorder to run gdb on postgresqql

After the backend is running, get its PID from ps(1) and do

gdb path-to-postgres-executable pid-of-same

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Ciencias políticas es la ciencia de entender por qué
los políticos actúan como lo hacen"  (netfunny.com)