Re: Let's drop support for named POSIX semaphores

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

On 26.10.26 03:20, Tom Lane wrote:
> After fixing a niggling compiler warning (6e06f6281) I started to
> wonder why don't we just drop support for named POSIX semaphores.
> We originally put that code in for the benefit of macOS, but SysV
> semaphores have been the preferred alternative on that platform since
> 2002,

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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeremy Schneider 2026-10-26 15:34:03 Re: Skip prefetch for block references that follow a FPW or WILL_INIT of the same block
Previous Message Tom Lane 2026-10-26 15:27:08 Re: [PG19] A canceled notify read leaves the NOTIFY queue stuck