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-11-13 23:11:49
Message-ID: 857946.1794611509@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:
> On 26.10.26 16:42, Tom Lane wrote:
>> 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.

> Ok, I'm withdrawing my comment.

OK, pushed with the minor corrections suggested upthread.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Alexander Korotkov 2026-11-13 22:25:32 Re: test: avoid redundant standby catchup in 049_wait_for_lsn