Re: Postgresql Segfault in 8.1

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: lists(at)benjamindsmith(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Postgresql Segfault in 8.1
Date: 2006-01-25 17:46:59
Message-ID: 20060125174659.GB4474@ns.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
> Benjamin Smith <lists(at)benjamindsmith(dot)com> writes:
> > What's the best way to do this? Take PG down (normally started as a service)
> > and run directly in a single-user mode?
>
> No, just start a psql session in one window, then in another window
> determine the PID of the backend process it's connected to, and attach
> gdb to that process. Something like
>
> ps auxww | grep postgres:
> ... eyeball determination of correct PID ...

You can also do 'select pg_backend_pid();' from psql... I know that's
there on 8.1, though I recall this was an 8.0 discussion and I *think*
it's there too but not 100% sure.

Enjoy,

Stephen

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message andrew 2006-01-25 17:49:29 filtering after join
Previous Message Michael Fuhr 2006-01-25 17:43:22 Re: table is not a table