Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cESM9-0001jQ-GK for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2016 02:53:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cESM8-0006zL-3H for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2016 02:53:16 +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 1cESM6-0006yP-Ln for pgsql-hackers@postgreSQL.org; Wed, 07 Dec 2016 02:53:14 +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 1cESLz-00038U-Nk for pgsql-hackers@postgreSQL.org; Wed, 07 Dec 2016 02:53:13 +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 uB72r6rU032388 for ; Tue, 6 Dec 2016 21:53:06 -0500 From: Tom Lane To: pgsql-hackers@postgreSQL.org Subject: Back-patch use of unnamed POSIX semaphores for Linux? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32386.1481079186.1@sss.pgh.pa.us> Date: Tue, 06 Dec 2016 21:53:06 -0500 Message-ID: <32387.1481079186@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 Just saw another report of what's probably systemd killing off Postgres' SysV semaphores, as we've discussed previously at, eg, https://www.postgresql.org/message-id/flat/57828C31.5060409%40gmail.com Since the systemd people are generally impervious to suggestions that they might be mistaken, I do not expect this problem to go away. I think we should give serious consideration to back-patching commit ecb0d20a9, which changed the default semaphore type to unnamed-POSIX on Linux. We've seen no problems in the buildfarm in the two months that that's been in HEAD. If we don't do this, we can expect to continue seeing complaints of this sort until pre-v10 PG releases fall out of use ... and I don't want to wait that long. Commit ecb0d20a9 also changed the default for FreeBSD. I'm not convinced we should back-patch that part, because (a) unnamed-POSIX semas have only been there since FreeBSD 9.0, which isn't that long ago, and (b) the argument for switching is "it'll perform better" not "your server will fail randomly without this change". Comments? 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