From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Amir Rohan <amir.rohan@mail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13643: Should a process dying bring postgresql down, or not?
Date: Mon, 28 Sep 2015 18:53:57 -0300
Message-ID: <20150928215357.GZ295765@alvherre.pgsql> (raw)
In-Reply-To: <5609B428.6020006@mail.com>
References: <20150926032021.3005.82023@wrigleys.postgresql.org>
<20150927185949.GP295765@alvherre.pgsql>
<56085581.1000105@mail.com>
<20150927210637.GR295765@alvherre.pgsql>
<5609B428.6020006@mail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Amir Rohan wrote:
> On 09/28/2015 12:06 AM, Alvaro Herrera wrote:
> > Amir Rohan wrote:
> >> > That postmaster is in STOPped mode is the issue here. That doesn't
> >> > happen unless you take specific action to do that.
> >>
> >> I hadn't noticed that. That looks like I suspended pg_ctl during start,
> >> but with the backup in progress already, it's not clear how I managed
> >> that state. There was no kill -SIGSTOP involved...
> >
> > Suspending a process *is* sending sigstop. You may not have sent
> > sigstop explicitely, but the shell would have done it if you suspended
> > the process.
>
> I *know*. But as you can see that backup process is already underway.
> That means pg_ctl had returned by then, and I had issued the
> pg_basebackup command. Since I didn't manually send a SIGSTOP,
> and postgres was already detached by then, I don't know how it
> could have gotten suspended.
Maybe if you do pg_ctl in a terminal and it remains there as an
unfinished job, then close the terminal, it will get sent a SIGSTOP.
I have vague recollections that stuff worked in this way.
> >> After killing some subprocesses in random I do see postgres
> >> restarting the whole group once one goes down, if/once its
> >> running/unsuspended.
>
> > Well, doing things randomly is unlikely to teach you much ...
>
> Well, It can teach you which electric socket will
> electrocute you when poked with a fork. That's useful data.
If you *learn* which one was it, you weren't doing it randomly but
systematically trying them all. That's what I wanted to point out.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: alvherre@2ndquadrant.com, amir.rohan@mail.com
Subject: Re: BUG #13643: Should a process dying bring postgresql down, or not?
In-Reply-To: <20150928215357.GZ295765@alvherre.pgsql>
References: <20150926032021.3005.82023@wrigleys.postgresql.org> <20150927185949.GP295765@alvherre.pgsql> <56085581.1000105@mail.com> <20150927210637.GR295765@alvherre.pgsql> <5609B428.6020006@mail.com> <20150928215357.GZ295765@alvherre.pgsql>
* 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