Re: Let's drop support for named POSIX semaphores

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Subject: Re: Let's drop support for named POSIX semaphores
Date: 2026-10-26 15:42:56
Message-ID: 637285.1793029376@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter(at)eisentraut(dot)org> writes:
> There were some recent discussions about removing the requirement of
> SysV IPC to allow macOS sandboxing mechanisms to be used. These
> discussions mainly focus on SysV shared memory, which is currently a
> hard requirement, but I would expect that switching to non-SysV
> semaphores would be part of such an undertaking. So I think adding
> another hard requirement on SysV IPC would not be preferable.

Named POSIX semaphores are not a credible replacement for SysV
semaphores, because of their performance issues (which are just
as real on macOS as anywhere else). So I think the direction we'd
have to go in to make that happen is to replace all the semaphore
stuff with futexes or some other low-level primitive, as Munro
speculated about in one of the threads I cited.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sami Imseih 2026-10-26 15:46:53 Re: Parallel vacuum: check XID wraparound failsafe between indexes
Previous Message Greg Burd 2026-10-26 15:38:19 Re: WAL record CRC calculated incorrectly because of underlying buffer modification