Re: "pg_ctl: the PID file ... is empty" at end of make check

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: "pg_ctl: the PID file ... is empty" at end of make check
Date: 2018-11-28 09:34:41
Message-ID: CAEepm=3npeMOqCQiEf8O9XP-CyPz8DCYeqXWgx6QHAs_1q8keA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Nov 28, 2018 at 6:47 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ideriha, Takeshi 2018-11-28 09:45:33 RE: idle-in-transaction timeout error does not give a hint
Previous Message Tatsuo Ishii 2018-11-28 09:06:17 Re: idle-in-transaction timeout error does not give a hint