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

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: "pg_ctl: the PID file ... is empty" at end of make check
Дата
Msg-id CAEepm=3npeMOqCQiEf8O9XP-CyPz8DCYeqXWgx6QHAs_1q8keA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: "pg_ctl: the PID file ... is empty" at end of make check  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: "pg_ctl: the PID file ... is empty" at end of make check  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: idle-in-transaction timeout error does not give a hint
Следующее
От: "Ideriha, Takeshi"
Дата:
Сообщение: RE: idle-in-transaction timeout error does not give a hint