pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maxim Sobolev <sobomax@freebsd.org>
Cc: pgsql-bugs@postgresql.org, Konstantin Belousov <kib@freebsd.org>
Subject: Re: BUG #14206: Switch to using POSIX semaphores on FreeBSD
Date: Wed, 22 Jun 2016 11:15:03 -0400
Message-ID: <30949.1466608503@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH7qZfuvxpLtyJ50+YkyOxmOTkVKFeN4cKU-SWby_0wOBpUHiw@mail.gmail.com>
References: <20160621193412.5792.65085@wrigleys.postgresql.org>
	<16860.1466539165@sss.pgh.pa.us>
	<CAH7qZfuEgJ4RfRy2NXEn1CMy8QRDjbaqmrne6f3NYgekjRLBzg@mail.gmail.com>
	<18145.1466541362@sss.pgh.pa.us>
	<CAH7qZfuvxpLtyJ50+YkyOxmOTkVKFeN4cKU-SWby_0wOBpUHiw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Maxim Sobolev <sobomax@freebsd.org> 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



view thread (14+ messages)  latest in thread

Message-ID: <30949.1466608503@sss.pgh.pa.us>
Permalink:  ../30949.1466608503@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30949.1466608503@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sobomax@freebsd.org, kib@freebsd.org
  Subject: Re: BUG #14206: Switch to using POSIX semaphores on FreeBSD
  In-Reply-To: <30949.1466608503@sss.pgh.pa.us>
  References: <20160621193412.5792.65085@wrigleys.postgresql.org> <16860.1466539165@sss.pgh.pa.us> <CAH7qZfuEgJ4RfRy2NXEn1CMy8QRDjbaqmrne6f3NYgekjRLBzg@mail.gmail.com> <18145.1466541362@sss.pgh.pa.us> <CAH7qZfuvxpLtyJ50+YkyOxmOTkVKFeN4cKU-SWby_0wOBpUHiw@mail.gmail.com> <30949.1466608503@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox