Re: Postgresql Segfault in 8.1 - Mailing list pgsql-general

From Tom Lane
Subject Re: Postgresql Segfault in 8.1
Date
Msg-id 4940.1138216388@sss.pgh.pa.us
Whole thread Raw
In response to Re: Postgresql Segfault in 8.1  (Stephen Frost <sfrost@snowman.net>)
List pgsql-general
Stephen Frost <sfrost@snowman.net> writes:
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
>> 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.

Good thought.  I've been doing it via ps since forever, but
pg_backend_pid is more foolproof (and it seems to have been in since
7.3, so that's not a problem).

            regards, tom lane

pgsql-general by date:

Previous
From: Benjamin Smith
Date:
Subject: Re: Postgresql Segfault in 8.1
Next
From: Tom Lane
Date:
Subject: Re: Postgresql Segfault in 8.1