Re: [GENERAL] Suddenly - LOG: could not open file "postmaster.pid":No such file or directory - Mailing list pgsql-general

From Michael Paquier
Subject Re: [GENERAL] Suddenly - LOG: could not open file "postmaster.pid":No such file or directory
Date
Msg-id CAB7nPqTnM1S=FTXCy9zGi4fhDRVTLnGtjWsAYhnX_ZFEp6db2g@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Suddenly - LOG: could not open file "postmaster.pid": No such file or directory  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [GENERAL] Suddenly - LOG: could not open file "postmaster.pid":No such file or directory
List pgsql-general
On Fri, Jun 23, 2017 at 1:43 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Muhammad Hanif Abdul Hamid <hanif.hamid@mimos.my> writes:
>> Within this week, I have faced two times "postmaster.pid" went missing in a sudden. Nobody deleted it or shutdown
theserver. 
>
> I'd lay very long odds that your second statement is false.  *Something*
> removed that file, and it wasn't the postmaster.

Yup, and the postmaster is designed to stop if it finds out that
postmaster.pid is removed. See that:
commit: 7e2a18a9161fee7e67642863f72b51d77d3e996f
author: Tom Lane <tgl@sss.pgh.pa.us>
date: Tue, 6 Oct 2015 17:15:52 -0400
Perform an immediate shutdown if the postmaster.pid file is removed
--
Michael


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] Suddenly - LOG: could not open file "postmaster.pid": No such file or directory
Next
From: Muhammad Hanif Abdul Hamid
Date:
Subject: Re: [GENERAL] Suddenly - LOG: could not open file "postmaster.pid":No such file or directory