From: Amir Rohan <amir.rohan@mail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13643: Should a process dying bring postgresql down, or not?
Date: Sun, 27 Sep 2015 23:45:54 +0300
Message-ID: <56085581.1000105@mail.com> (raw)
In-Reply-To: <20150927185949.GP295765@alvherre.pgsql>
References: <20150926032021.3005.82023@wrigleys.postgresql.org>
<20150927185949.GP295765@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 09/27/2015 09:59 PM, Alvaro Herrera wrote:
> amir.rohan@mail.com wrote:
>
>> postgres 2181 0.0 0.1 134468 9504 pts/0 T 03:34 0:00 /usr/local/pgsql/bin/postgres -D /home/local/pg/s1
>> postgres 2183 0.0 0.0 134576 4168 ? Ss 03:34 0:00 postgres: checkpointer process
>> postgres 2184 0.0 0.0 134604 2844 ? Ss 03:34 0:00 postgres: writer process
>> postgres 2185 0.0 0.0 134468 2780 ? Ss 03:34 0:00 postgres: wal writer process
>> postgres 2186 0.0 0.0 0 0 ? Zs 03:34 0:00 [postgres] <defunct> <<<<<<<<<<<<<<< dead process
>> postgres 2187 0.0 0.0 127300 2204 ? Ss 03:34 0:00 postgres: stats collector process
>> postgres 2193 0.0 0.0 118164 2696 pts/0 T 03:34 0:00 pg_basebackup -D /home/local/pg/backup -p 57833 --format=t -x
>> postgres 2194 0.0 0.0 134916 6016 ? Ss 03:34 0:00 postgres: wal sender process user1 [local] sending backup "pg_basebackup base backup"
>
> 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...
After killing some subprocesses in random I do see postgres
restarting the whole group once one goes down, if/once its
running/unsuspended.
Excuse the noise.
Amir
--
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: amir.rohan@mail.com, alvherre@2ndquadrant.com
Subject: Re: BUG #13643: Should a process dying bring postgresql down, or not?
In-Reply-To: <56085581.1000105@mail.com>
References: <20150926032021.3005.82023@wrigleys.postgresql.org> <20150927185949.GP295765@alvherre.pgsql> <56085581.1000105@mail.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