pgsql: Switch the semaphore API on Solaris to unnamed POSIX.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Switch the semaphore API on Solaris to unnamed POSIX.
Date: 2026-03-14 18:10:38
Message-ID: E1w1TRd-0009rd-27@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Switch the semaphore API on Solaris to unnamed POSIX.

Solaris descendants (Illumos, OpenIndiana, OmniOS, etc.) hit System V
semaphore limits ("No space left on device" from semget) when running
many parallel test scripts under default system settings. We could
tell people to raise those settings, but there's a better answer.
Unnamed POSIX semaphores have been available on Solaris for decades
and work well, so prefer them, as was recently done for AIX.

This patch also updates the documentation to remove now-unnecessary
advice about raising project.max-sem-ids and project.max-msg-ids.

Author: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: Greg Burd <greg(at)burd(dot)me>
Discussion: https://postgr.es/m/470305.1772417108@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0123ce131fca454009439dfa3b2266d1d40737d7

Modified Files
--------------
doc/src/sgml/runtime.sgml | 9 ++-------
meson.build | 1 +
src/template/solaris | 5 +++++
3 files changed, 8 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2026-03-15 06:48:19 pgsql: Make typeof and typeof_unqual fallback definitions work on C++11
Previous Message Tom Lane 2026-03-14 17:47:17 pgsql: Fix aclitemout() to work during early bootstrap.