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

Craig Ringer <craig.ringer@2ndquadrant.com>

From: Craig Ringer <craig.ringer@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Robert Haas <robertmhaas@gmail.com>
Date: 2016-12-11T07:04:27Z
Lists: pgsql-hackers
On 11 Dec. 2016 07:44, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:


I think we need to do at least this much for v10, because otherwise
we'll face ABI issues if an extension is compiled against code with
one semaphore API choice and used with code with a different one.


+1, this is a good idea. Your performance comments make sense too.

Commits

  1. Make the different Unix-y semaphore implementations ABI-compatible.

  2. Use unnamed POSIX semaphores, if available, on Linux and FreeBSD.