Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bthjL-0007AD-2N for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Oct 2016 21:03:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bthjK-00047U-La for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Oct 2016 21:03:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bthjJ-000457-Md for pgsql-hackers@postgresql.org; Mon, 10 Oct 2016 21:03:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bthjH-0006pe-96 for pgsql-hackers@postgresql.org; Mon, 10 Oct 2016 21:03:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u9AJHDlE010660; Mon, 10 Oct 2016 15:17:13 -0400 From: Tom Lane To: Thomas Munro cc: Christoph Berg , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Switch to unnamed POSIX semaphores as our preferred sema code? In-reply-to: References: <8536.1475704230@sss.pgh.pa.us> <15690.1475761593@sss.pgh.pa.us> <29244.1475959928@sss.pgh.pa.us> <20161009091803.fag2mkehtuknd5s6@msg.df7cb.de> <5212.1476118649@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 11 Oct 2016 08:10:00 +1300" Date: Mon, 10 Oct 2016 15:17:13 -0400 Message-ID: <10659.1476127033@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Thomas Munro writes: > On Tue, Oct 11, 2016 at 5:57 AM, Tom Lane wrote: >> (I'm a little suspicious that older variants of FreeBSD might not >> have working sem_init, like the other *BSD variants, necessitating >> a run-time test there. But we'll cross that bridge when we come >> to it.) > The sem_init man page from FreeBSD 8.4[1] (EOL August 2015) and earlier said: > This implementation does not support shared semaphores, and reports this > fact by setting errno to EPERM. > FreeBSD 9.0 (released January 2012) reimplemented semaphores and > removed those words from that man page[2]. Yeah, in subsequent googling I found other mentions of this having been added in FreeBSD 9.0. But that will be more than 5 years old by the time PG 10 gets out. > All current releases[3] support it, though I guess there may be 8.4 > machines out there a year and a bit after EOL. We don't have anything older than 9.0 in the buildfarm, which I take to indicate that nobody particularly cares about older versions anymore. I would just as soon not add a run-time test in configure (it breaks cross-compiles), so I'd rather wait and see if anyone complains. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers