Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEdNq-0005oA-2b for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2016 14:39:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cEdNp-0004pa-Lz for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2016 14:39:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cEdMP-00022n-QZ for pgsql-hackers@postgreSQL.org; Wed, 07 Dec 2016 14:38:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cEdML-0000yC-TB for pgsql-hackers@postgreSQL.org; Wed, 07 Dec 2016 14:38:17 +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 uB7EcAKD027170; Wed, 7 Dec 2016 09:38:10 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@postgreSQL.org Subject: Re: Back-patch use of unnamed POSIX semaphores for Linux? In-reply-to: <722c489e-810a-be9c-f005-3b6bdcb4c59f@2ndquadrant.com> References: <32387.1481079186@sss.pgh.pa.us> <722c489e-810a-be9c-f005-3b6bdcb4c59f@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 07 Dec 2016 08:54:17 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27168.1481121490.1@sss.pgh.pa.us> Date: Wed, 07 Dec 2016 09:38:10 -0500 Message-ID: <27169.1481121490@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) 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 Peter Eisentraut writes: > On 12/6/16 9:53 PM, Tom Lane wrote: >> I think we should give serious consideration to back-patching commit >> ecb0d20a9, which changed the default semaphore type to unnamed-POSIX >> on Linux. > Even with that change, dynamic shared memory is still vulnerable to be > removed. Really? I thought we concluded that it is safe because it is detectably attached to running processes. The trouble with SysV semaphores is that they lack any such attachment, so systemd is left to guess whether they are still in use. 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