Re: [HACKERS] postmaster.pid
Evan Simpson <evan@4-am.com>
From: Evan Simpson <evan@4-am.com>
To: Tatsuo Ishii <t-ishii@sra.co.jp>
Cc: pgsql-hackers@postgreSQL.org
Date: 1999-12-03T17:45:55Z
Lists: pgsql-hackers
Tatsuo Ishii wrote: > I have committed changes to postmaster.c. Now it creates a file called > "postmaster.pid" under $PGDATA, which holds postmaster's process > id. If the file has already existed, postmaster won't start. Do you just test to see if the file exists? If so, I would suggest actually reading the pid and checking to see if the process is still running. That way we don't have to 'rm postmaster.pid' if the postmaster dies abnormally (Netscape for Linux has this problem). Cheers, Evan @ 4-am