Re: "pg_ctl: the PID file ... is empty" at end of make check - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: "pg_ctl: the PID file ... is empty" at end of make check
Date
Msg-id CAEepm=3npeMOqCQiEf8O9XP-CyPz8DCYeqXWgx6QHAs_1q8keA@mail.gmail.com
Whole thread Raw
In response to Re: "pg_ctl: the PID file ... is empty" at end of make check  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: "pg_ctl: the PID file ... is empty" at end of make check  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Nov 28, 2018 at 6:47 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Is it possible that unlink() on APFS is not atomic?  That is, the
> sequence of events is something like
>
> pg_ctl: open("postmaster.pid")
>                                      postmaster: unlink("postmaster.pid")
> pg_ctl: reads file, gets zero bytes
>
> But that idea is in the OS-bug class, which we agree seems unlikely.

I think you might be right.

https://github.com/macdice/unlinktest

-- 
Thomas Munro
http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: idle-in-transaction timeout error does not give a hint
Next
From: "Ideriha, Takeshi"
Date:
Subject: RE: idle-in-transaction timeout error does not give a hint