Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFjsa-0004aZ-QW for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 15:15:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bFjsa-0005Q6-D8 for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 15:15:48 +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 1bFjrv-0003IM-Pk for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 15:15: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 1bFjrt-0002Kf-LA for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 15:15:06 +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 u5MFF38V030950; Wed, 22 Jun 2016 11:15:03 -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> <18145.1466541362@sss.pgh.pa.us> Comments: In-reply-to Maxim Sobolev message dated "Wed, 22 Jun 2016 07:52:41 -0700" Date: Wed, 22 Jun 2016 11:15:03 -0400 Message-ID: <30949.1466608503@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, on the related note on merits of SYSV semaphores vs. POSIX the > handling of SYSV semaphore shortage in PG is, uggh, awful. The whole server > crashes (abort()s), bumping into that on production box is not fun at all > and it's particularly easy since the resource is severely constrained by > default. Ideally it should just deny the particular connection request. This seems like nonsense, because those are acquired once at postmaster startup, not per connection. You will need to decrease max_connections to start successfully in a resource-constrained system, but the same is true of other resource limits. 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