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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gavin Panella <gavinpanella(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: `pg_ctl init` crashes when run concurrently; semget(2) suspected
Date: 2025-08-10 22:56:00
Message-ID: 2692610.1754866560@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> I didn't try other BSDen; this might be a NetBSD-ism that Apple
> inherited, or maybe it's common among the BSDen.

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.

For Linux and FreeBSD, it doesn't actually matter to us because
we no longer use SysV semaphores on those platforms. But this
is a live problem on macOS, NetBSD, OpenBSD.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mircea Cadariu 2025-08-11 00:10:21 Re: Request for Guidance on Reducing PostgreSQL DB Restoration Time
Previous Message Tom Lane 2025-08-10 21:54:03 Re: `pg_ctl init` crashes when run concurrently; semget(2) suspected