FATAL: lock file "postmaster.pid" already exists - Mailing list pgsql-general

From deepak
Subject FATAL: lock file "postmaster.pid" already exists
Date
Msg-id CAALYute19vwQ-TzhhiFDAY7_H9U6Y5MEarxwX8cZ8ht=iXrHvA@mail.gmail.com
Whole thread Raw
Responses Re: FATAL: lock file "postmaster.pid" already exists
List pgsql-general
Hi,

On Windows 2008, sometimes the server fails to start due to an existing "postmaster.pid' file.

I tried rebooting a few times and even force shutting down the server, and it started up fine.
It seems to be a race-condition of sorts in the code that detects whether the process with PID
in the file is running or not.

Does any one have this same problem?  Any way to fix it besides removing the PID file
manually each time the server complains about this?



Thanks,
Deepak

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Use LISTEN/NOTIFY between different databases
Next
From: Brent Wood
Date:
Subject: Re: COPY column order