Re: psql won't stayed connected

From: "Kevin Izzet" <Kevin(dot)Izzet(at)nsc(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: psql won't stayed connected
Date: 2004-08-06 15:32:04
Message-ID: OFBE8626FE.9B4CA5B5-ON80256EE8.005526D9-80256EE8.00555582@nsc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Tom,

Managed to get the debugger to work and here are the results, don't
understand the results mind :-)

#0 0x08155d55 in proc_exit ()
#1 0x08161c17 in PostgresMain ()
#2 0x0813eee0 in BackendFork ()
#3 0x0813e8d6 in BackendStartup ()
#4 0x0813d1c6 in ServerLoop ()
#5 0x0813cda3 in PostmasterMain ()
#6 0x08110f56 in main ()

Thanks for your help sofar...

p.s. Installed phpPgAdmin and that appears to work fine, don't know if
that makes any difference

Regards

Kevin Izzet

Database / Unix Administrator
Tel: (Code)+44(0)1475 655606
Fax: (Code)+44(0)1475 637755
Email: Kevin(dot)Izzet(at)nsc(dot)com

"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
06/08/2004 15:41


To: "Kevin Izzet" <Kevin(dot)Izzet(at)nsc(dot)com>
cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] psql won't stayed connected

"Kevin Izzet" <Kevin(dot)Izzet(at)nsc(dot)com> writes:
> Thanks for the reply but forgive my ignorance but how do I setup the
> debugger breakpoint ?

Something like this:

PGOPTIONS="-W 30" psql ...
Use ps to determine PID of backend connected to psql
gdb /path/to/postgres-executable PID-of-backend
gdb> break proc_exit
gdb> continue
(wait for rest of timeout to expire)
gdb will report reaching proc_exit breakpoint
gdb> bt
... interesting result is here ...
gdb> quit

If you've never done this before it will probably take you more than 30
seconds to get into gdb --- adjust the W option accordingly.

regards, tom lane

*************************************************************************************
This email may contain confidential and privileged material for the sole
use of the intended recipient. Any review, use, distribution or disclosure
by others is prohibited. If you are not the intended or authorised
recipient please contact the sender by reply email and delete all copies
of this message

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2004-08-06 16:40:25 Re: psql won't stayed connected
Previous Message Tom Lane 2004-08-06 14:41:41 Re: psql won't stayed connected