pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Perform only one ReadControlFile() during startup.
Date: Tue, 19 Sep 2017 09:51:11 -0700
Message-ID: <20170919165111.bsocu7ev2oaox4mx@alap3.anarazel.de> (raw)
In-Reply-To: <17513.1505838240@sss.pgh.pa.us>
References: <20170916183849.kgqlyi3q2oy4qjkx@alap3.anarazel.de>
	<27204.1505591941@sss.pgh.pa.us>
	<20170916202705.lhszupzi3s4iaxy6@alap3.anarazel.de>
	<20170917080752.rcmihzfmgbeuqjk2@alap3.anarazel.de>
	<20170918103213.nhlmfh5v3qrgoskg@alap3.anarazel.de>
	<CA+TgmoYAPTmm1ZhvOb+iuJxsxWdXiO5LtcLFsMRQxHa8LpVxWA@mail.gmail.com>
	<20170918180439.mgxvnbmxzb6br57t@alap3.anarazel.de>
	<CA+TgmoZ+=ZMD9bBxJ2e42z1EGJYd9Zm+_g73Kn4CML6BU6bfRA@mail.gmail.com>
	<20170919161012.i3j4ugktf2xkr4kb@alap3.anarazel.de>
	<17513.1505838240@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 2017-09-19 12:24:00 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > Unfortunately the backends themselves also react with inaccurate error
> > messages to things like immediate shutdowns...
> 
> Yeah, those signals are kind of overloaded these days.  Not sure if
> there's any good way to improve that.

We could use the procsignal infrastructure (or some pared down
equivalent with just one 'server-status' byte in shmem) for the
non-crash immediate shutdown. That'd not be that a crazy amount of
shared memory that'd need to be touched in shared memory, and we're not
in an actual crash in that case, so no corrupted shmem. OTOH, that'd
still leave us with some processes that aren't connected to shmem
receiving the bare SIGQUIT - but I think they mostly already have more
terse error messages anyway.

Greetings,

Andres Freund


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (21+ messages)  latest in thread

Message-ID: <20170919165111.bsocu7ev2oaox4mx@alap3.anarazel.de>
Permalink:  ../20170919165111.bsocu7ev2oaox4mx@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20170919165111.bsocu7ev2oaox4mx@alap3.anarazel.de

 · 

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-committers@postgresql.org
  Cc: andres@anarazel.de, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Perform only one ReadControlFile() during startup.
  In-Reply-To: <20170919165111.bsocu7ev2oaox4mx@alap3.anarazel.de>
  References: <20170916183849.kgqlyi3q2oy4qjkx@alap3.anarazel.de> <27204.1505591941@sss.pgh.pa.us> <20170916202705.lhszupzi3s4iaxy6@alap3.anarazel.de> <20170917080752.rcmihzfmgbeuqjk2@alap3.anarazel.de> <20170918103213.nhlmfh5v3qrgoskg@alap3.anarazel.de> <CA+TgmoYAPTmm1ZhvOb+iuJxsxWdXiO5LtcLFsMRQxHa8LpVxWA@mail.gmail.com> <20170918180439.mgxvnbmxzb6br57t@alap3.anarazel.de> <CA+TgmoZ+=ZMD9bBxJ2e42z1EGJYd9Zm+_g73Kn4CML6BU6bfRA@mail.gmail.com> <20170919161012.i3j4ugktf2xkr4kb@alap3.anarazel.de> <17513.1505838240@sss.pgh.pa.us> <20170919165111.bsocu7ev2oaox4mx@alap3.anarazel.de>

* 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