Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vxA4x-000sGh-11 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Mar 2026 20:41:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vxA4v-002yqH-1P for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Mar 2026 20:41:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vxA4u-002yq9-2y for pgsql-hackers@lists.postgresql.org; Mon, 02 Mar 2026 20:41:21 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vxA4s-000000004WZ-3bHr for pgsql-hackers@lists.postgresql.org; Mon, 02 Mar 2026 20:41:20 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id 57F7BEC04DC; Mon, 2 Mar 2026 15:41:17 -0500 (EST) Received: from phl-imap-14 ([10.202.2.87]) by phl-compute-02.internal (MEProxy); Mon, 02 Mar 2026 15:41:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burd.me; h=cc:cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1772484077; x=1772570477; bh=rBYSvZa72YUf0UB4TegEXxDoJ1YwdsGdOwCZa7Ad1RQ=; b= 1Jk+VggrwynM3e1uUBAMlmAHNSDDsouJQZv+iUqF/Hg307z/1jRSBCCB2v1s4l2d BhiSlnyuB+PBo9EnUPiE+JMz0WXXkL3S9/VqQ6B9WmSFpNO4N8EOzcIGKDsT4MVC PYuMTXbVu1Qtckyg7c8e+UMJQ/iP6JqR9w1+dWrMviwcSE6DYF7Kzamdwfuw9JKy 3tCzGCiYNroDvPwxOY3FPCYm1H4bYAaw32Tv3wmCw44WIdpFeuiaAuwc9gRTMPq+ iaZTn/B3iK73PqpA9NO5gw3eIPEJ+chrkepHHhgYwB7bMVmonR/FJ6B28a2c9WRG 9fmbpPqe7RsLVqeGgtH9SA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1772484077; x= 1772570477; bh=rBYSvZa72YUf0UB4TegEXxDoJ1YwdsGdOwCZa7Ad1RQ=; b=Y aHoW6O49O11BVj5oD0wouK2aJrVluhtUKGEcoYfjKhrB8ITedGX5ejeH8SEh2AIg NMWP1pWLJN36PyYLc8NLOIncS9URXNo0LS2SyHUdi0/BO+zHb63dAi3s7kyQf2tk Xo7UdwbucbzvYLV+QOegn9SNQaA1gKy5U0ChkSgtqrO+dtABzBRD9NgrF7as5GyF ycWK4THLEyjnXyiEO2O5QON28918hbREJ2/uXhhEFGScwvYOq+JAkrp/Rp7yksct 6aGiIzAkA9gZ//FFwTc4hmZpUVR5mIq60Tu0gNzTiS4GWfL99PcGaSjNzwwiyOnr eJkU1M1YJys3fD0g3exOw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvheekieeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedfifhrvghg uceuuhhrugdfuceoghhrvghgsegsuhhrugdrmhgvqeenucggtffrrghtthgvrhhnpedvue fhffdtvdevueffteehheefleevtedvfedtueefffeijeefudelveeftdffudenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvghessghurh gurdhmvgdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepthhhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgsh hqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghp thhtohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: i675e48f3:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 1EACAC4006E; Mon, 2 Mar 2026 15:41:17 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: AYOavP_A1_K3 Date: Mon, 02 Mar 2026 15:40:56 -0500 From: "Greg Burd" To: "Tom Lane" Cc: "PostgreSQL Hackers" , "Thomas Munro" Message-Id: In-Reply-To: <881232.1772483286@sss.pgh.pa.us> References: <470305.1772417108@sss.pgh.pa.us> <476159.1772419827@sss.pgh.pa.us> <2cbf958e-a36f-4121-b9e9-13ebaaa1cb2c@app.fastmail.com> <881232.1772483286@sss.pgh.pa.us> Subject: Re: Areas for Solaris support modernization Content-Type: text/plain Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Mar 2, 2026, at 3:28 PM, Tom Lane wrote: > "Greg Burd" writes: >> I've started a build/test on "icarus" with your patch applied. I'll let you know how it goes, hopefully that won't take as long now. > > Cool. Here's also a patch to switch the semaphore API. > I've tested both patches on OpenIndiana, but a confirmation > from icarus would be good. Roger, wilco. As soon as the previous patch run finishes up I'll start another with this additive change set. best. -greg > regards, tom lane > > > diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml > index b4914faff1c..c1a3e5b779a 100644 > --- a/doc/src/sgml/runtime.sgml > +++ b/doc/src/sgml/runtime.sgml > @@ -1127,13 +1127,8 @@ projadd -c "PostgreSQL DB User" -K > "project.max-shm-memory=(privileged,8GB,deny) > > > > - Other recommended kernel setting changes for database servers > which will > - have a large number of connections are: > - > -project.max-shm-ids=(priv,32768,deny) > -project.max-sem-ids=(priv,4096,deny) > -project.max-msg-ids=(priv,4096,deny) > - > + To run a very large server, or multiple servers concurrently, > you > + might also need to raise > project.max-shm-ids. > > > > diff --git a/meson.build b/meson.build > index ddf5172982f..40fbbbcd3fe 100644 > --- a/meson.build > +++ b/meson.build > @@ -324,6 +324,7 @@ elif host_system == 'openbsd' > > elif host_system == 'sunos' > portname = 'solaris' > + sema_kind = 'unnamed_posix' > export_fmt = '-Wl,-M@0@' > # We need these #defines to get POSIX-conforming versions > # of many interfaces (sigwait, getpwuid_r, shmdt, ...). > diff --git a/src/template/solaris b/src/template/solaris > index a4d8d38a8f8..ea524fdb2bd 100644 > --- a/src/template/solaris > +++ b/src/template/solaris > @@ -1,4 +1,9 @@ > # src/template/solaris > > +# Prefer unnamed POSIX semaphores if available, unless user overrides choice > +if test x"$PREFERRED_SEMAPHORES" = x"" ; then > + PREFERRED_SEMAPHORES=UNNAMED_POSIX > +fi > + > # Extra CFLAGS for code that will go into a shared library > CFLAGS_SL="-fPIC" > > Attachments: > * change-sema-API-for-Solaris.patch