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

From: Muhammad Hanif Abdul Hamid <hanif(dot)hamid(at)mimos(dot)my>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "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 07:34:24
Message-ID: 26ddb069b568448cb8f5da91715f9563@M-1502-TPM.mimos.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Thanks for your reply, Tom and Michael.

Maybe an irrelevant question, but I would like to know if there anything from postgres process (e.g any parameter that is not set right) that might remove the postmaster.pid?

FYI, we have 20 other sites with the same database use but have not experienced this problem.

Thank you.

-----Original Message-----
From: Michael Paquier [mailto:michael(dot)paquier(at)gmail(dot)com]
Sent: Jumaat, 23 Jun 2017 1:26 ptg
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
Subject: Re: [GENERAL] Suddenly - LOG: could not open file "postmaster.pid": No such file or directory

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

________________________________
DISCLAIMER:

This e-mail (including any attachments) is for the addressee(s) only and may be confidential, especially as regards personal data. If you are not the intended recipient, please note that any dealing, review, distribution, printing, copying or use of this e-mail is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete the original message (including any attachments).

MIMOS Berhad is a research and development institution under the purview of the Malaysian Ministry of Science, Technology and Innovation. Opinions, conclusions and other information in this e-mail that do not relate to the official business of MIMOS Berhad and/or its subsidiaries shall be understood as neither given nor endorsed by MIMOS Berhad and/or its subsidiaries and neither MIMOS Berhad nor its subsidiaries accepts responsibility for the same. All liability arising from or in connection with computer viruses and/or corrupted e-mails is excluded to the fullest extent permitted by law.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Арсен Арутюнян 2017-06-23 07:46:33 Re[2]: [GENERAL] SPI_execute_plan and vardata
Previous Message Michael Paquier 2017-06-23 05:25:30 Re: Suddenly - LOG: could not open file "postmaster.pid": No such file or directory