Re: postmaster.pid - Mailing list pgsql-general

From Tom Lane
Subject Re: postmaster.pid
Date
Msg-id 4246.1144874713@sss.pgh.pa.us
Whole thread Raw
In response to postmaster.pid  ("Ian Harding" <harding.ian@gmail.com>)
List pgsql-general
"Ian Harding" <harding.ian@gmail.com> writes:
> The docs state that postmaster.pid is "A lock file recording the
> current postmaster PID and shared memory segment ID (not present after
> postmaster shutdown"
> I never looked until now, but I see the number 5432001 where the pid
> should be, and the real pid is in /tmp/.s.PGSQL.5432.lock, along with
> the path to data.

Not sure which PG version you are looking at, but in recent releases the
PID is on the first line, the second line is the $PGDATA path, and the
third has a couple of values associated with shared memory.

            regards, tom lane

pgsql-general by date:

Previous
From: Tim Hart
Date:
Subject: Evaluating client processes vs stored procedures
Next
From: Tom Lane
Date:
Subject: Re: "Hidden" field for each column