postmaster.pid file

From: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: postmaster.pid file
Date: 2007-08-13 21:51:46
Message-ID: FE44E0D7EAD2ED4BB2165071DB8E328C03062B37@egcrc-ex01.egcrc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Everybody,

I experienced something a bit strange.
When I issued, on a linux machine, the following
command as user postgres:
~/bin/pg_ctl -D ~/bin reload
It wasn't happy. The complaint was:
pg_ctl: PID file "/usr/local/pgsql/bin/postmaster.pid" does not exist
Is server running?

Upon checking, I discovered that the file postmaster.pid was
in data directory and as I copied it into ~/bin directory (and
changed the ownership and permission appropriately), it sent
the HUP signal to the server process and all was well. I am
sure I have issued this command before and never had problems
like today.

Question 1:
What happened?
Did I do the right thing? If not, please tell me what I
should've and could've done.

Question 2:
As I looked at the pid file, there were three lines. The
first line seemed like the pid of the server process. The
second line indicates where the database cluster resides.
In my case it is /usr/local/pgsql/data. The last line has
two numbers. In my case they are: 5432001 and 131072.
What do they represent? I don't seem to have processes
by such id.

Thank you in advance.

Regards,

Tena Sakai
tsakai(at)gallo(dot)ucsf(dot)edu

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2007-08-13 21:54:46 Re: except command
Previous Message olivier.boissard@cerene.fr 2007-08-13 21:30:26 Re: except command