From: Justin Pryzby <pryzby@telsasoft.com>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: REL_11_STABLE: dsm.c - cannot unpin a segment that is not pinned
Date: Sun, 17 Feb 2019 16:36:37 -0600
Message-ID: <20190217223637.GF28750@telsasoft.com> (raw)
In-Reply-To: <CAEepm=1TmiBaWLf23kAA2iPO=kME5HtX9wNnYhKihu1Wha6zwQ@mail.gmail.com> <CAEepm=0kMunPC0hhuT0VC-5dfMT3K-xsToJHkTznA6yrSARsPg@mail.gmail.com>
On Mon, Feb 18, 2019 at 09:26:53AM +1300, Thomas Munro wrote:
> Huh. What exactly do you mean by "killing the postmaster"? If you
> mean SIGKILL or something, one problem with 11 is that
> gather_readnext() doesn't respond to postmaster death. I fixed that
> (and every similar place) in master with commit cfdf4dc4fc9, like so:
On Mon, Feb 18, 2019 at 10:26:12AM +1300, Thomas Munro wrote:
> Yeah. I suppose we should probably consider back-patching a fix for that.
It hasn't been an issue for us, but that seems like a restart hazard. Who
knows what all the distros initscripts do, how thin a layer they are around
pg_ctl or kill, but you risk waiting indefinitely for postmaster and its gather
backend/s to die, all the while rejecting new clients with 'the database system
is shutting down'.
+1
Justin
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-hackers@postgresql.org
Cc: pryzby@telsasoft.com, thomas.munro@enterprisedb.com
Subject: Re: REL_11_STABLE: dsm.c - cannot unpin a segment that is not pinned
In-Reply-To: <20190217223637.GF28750@telsasoft.com>
References: <20190217223637.GF28750@telsasoft.com>
* 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