Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFSPf-0000g9-Qu for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Jun 2016 20:36:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bFSPf-00006X-DW for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Jun 2016 20:36:47 +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 1bFSP1-0007Ar-2R for pgsql-bugs@postgresql.org; Tue, 21 Jun 2016 20:36:07 +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 1bFSOy-0003hP-LI for pgsql-bugs@postgresql.org; Tue, 21 Jun 2016 20:36:05 +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 u5LKa21e018146; Tue, 21 Jun 2016 16:36:02 -0400 From: Tom Lane To: Maxim Sobolev cc: pgsql-bugs@postgresql.org, Konstantin Belousov Subject: Re: BUG #14206: Switch to using POSIX semaphores on FreeBSD In-reply-to: References: <20160621193412.5792.65085@wrigleys.postgresql.org> <16860.1466539165@sss.pgh.pa.us> Comments: In-reply-to Maxim Sobolev message dated "Tue, 21 Jun 2016 13:12:06 -0700" Date: Tue, 21 Jun 2016 16:36:02 -0400 Message-ID: <18145.1466541362@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Maxim Sobolev writes: > Tom, thanks for looking at it so promptly. I am adding kib@ into the > discussion. Perhaps he would comment on the SYSV vs. POSIX in FreeBSD and > named vs. unnamed. BTW, I trawled our archives and found this thread concerning the switch from POSIX to SYSV on OS X: https://www.postgresql.org/message-id/flat/3830CBEB-F8CE-4EBC-BE16-A415E78A4CBC%40apple.com I'm not sure what you were using to decide that POSIX semaphores were okay, but the points in that thread about pgbench not being a very good test case remain relevant. > As far as I can tell, the sem_init(3) interface is present in the FreeBSD > 10.3, so maybe we can use those instead? If that seems like a competitive alternative for you, it'd be nice to have a platform where we use unnamed POSIX semaphores by default. I'm a little worried about whether that code has suffered bit-rot, since it's been sitting there basically unused for so long. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs