Re: `pg_ctl init` crashes when run concurrently; semget(2) suspected

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: `pg_ctl init` crashes when run concurrently; semget(2) suspected
Дата
Msg-id 3590952.1755029942@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: `pg_ctl init` crashes when run concurrently; semget(2) suspected  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: `pg_ctl init` crashes when run concurrently; semget(2) suspected
Список pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> On Mon, Aug 11, 2025 at 10:56 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> A bit more research later: OpenBSD behaves like NetBSD, while
>> FreeBSD behaves like Linux.  So that's pretty inconclusive about
>> what the aboriginal behavior was.  I also found that OpenIndiana
>> behaves like Linux.

> Out of curiosity, FreeBSD changed that in 2016:
> https://github.com/freebsd/freebsd-src/commit/f00fb5457ebf5907055e420d803ac67fb098109e

Hah, so that lends weight to the theory that this is an ancient
Berkeley mistake.  I wonder how hard it would be to convince
POSIX that they should be more specific about which errno is
expected here.

In the meantime, though, we'll have to deal with the existing
behavior for years to come.  So I'll go ahead with that patch.
I like having a loop limit there anyway --- I was never exactly
convinced that retrying indefinitely was a good idea.

            regards, tom lane



В списке pgsql-hackers по дате отправления: