Re: Back-patch use of unnamed POSIX semaphores for Linux?

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Back-patch use of unnamed POSIX semaphores for Linux?
Date: 2016-12-07 22:51:21
Message-ID: 20161207225121.ddnoo7bi6mw7yd3g@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2016-12-06 23:54:43 -0500, Tom Lane wrote:
> You're attacking a straw man. I didn't propose changing our behavior
> anywhere but Linux. AFAIK, on that platform unnamed POSIX semaphores
> are futexes, which have been a stable feature since 2003 according to
> https://en.wikipedia.org/wiki/Futex#History. Anybody who did need
> to compile PG for use with a pre-2.6 kernel could override the default,
> anyway.

Back then futexes weren't "robust" though (crash handling and such was
unusable). They only started to be reliable in the ~2007-2008 frame
IIRC. That still should be ok though.

Regards,

Andres

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-12-07 22:56:11 Re: pg_dump vs. TRANSFORMs
Previous Message Andres Freund 2016-12-07 22:46:11 Re: Back-patch use of unnamed POSIX semaphores for Linux?