Re: Suddenly - LOG: could not open file "postmaster.pid": No such file or directory

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Muhammad Hanif Abdul Hamid <hanif(dot)hamid(at)mimos(dot)my>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Suddenly - LOG: could not open file "postmaster.pid": No such file or directory
Date: 2017-06-23 05:25:30
Message-ID: CAB7nPqTnM1S=FTXCy9zGi4fhDRVTLnGtjWsAYhnX_ZFEp6db2g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 23, 2017 at 1:43 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Muhammad Hanif Abdul Hamid <hanif(dot)hamid(at)mimos(dot)my> writes:
>> Within this week, I have faced two times "postmaster.pid" went missing in a sudden. Nobody deleted it or shutdown the server.
>
> 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(at)sss(dot)pgh(dot)pa(dot)us>
date: Tue, 6 Oct 2015 17:15:52 -0400
Perform an immediate shutdown if the postmaster.pid file is removed
--
Michael

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Muhammad Hanif Abdul Hamid 2017-06-23 07:34:24 Re: Suddenly - LOG: could not open file "postmaster.pid": No such file or directory
Previous Message Tom Lane 2017-06-23 04:43:39 Re: Suddenly - LOG: could not open file "postmaster.pid": No such file or directory