pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerry Sievers <gsievers19@comcast.net>
To: Brandl\, Wolfgang <wolfgang.brandl@brz.gv.at>
Cc: pgsql-admin\@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: restart_after_crash
Date: Wed, 12 Sep 2018 09:43:44 -0500
Message-ID: <87lg86vkrj.fsf@jsievers.enova.com> (raw)
In-Reply-To: <F2EB158D72DC6A4F97877DD0BB6F020E65065972@CMD0MBX-AB01.cmd0.cna.at>
References: <F2EB158D72DC6A4F97877DD0BB6F020E65065972@CMD0MBX-AB01.cmd0.cna.at>

"Brandl, Wolfgang" <wolfgang.brandl@brz.gv.at> writes:

> Hi
> We are testing
> restart_after_crash = on
>
> What is a cras? We killed the Postgres process with -9 SIGSEGV SIGABRT etc.. But never postgres is restarting.
>
> The question arose because of the decision to restart Postgres over systemctl or with the Postgres feature.
>
> But it seems that the Postgres restart is not working or not always working. Or is an additional feature necessary?

It is for a postmaster controlled kill of all backends after a *backend*
crash.

Killing postmaster itself as you are doing does not invoke the feature.

Try choosing any client backend by PID and then do your kill -9 on that
one.

Then expect any other backends to be killed also but the postmaster
still working and then spawning more backend when clients attempt to
connect.

>
> Regards
> Wolfgang

-- 
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800




view thread (3+ messages)

Message-ID: <87lg86vkrj.fsf@jsievers.enova.com>
Permalink:  ../87lg86vkrj.fsf@jsievers.enova.com/
Also on:    postgresql.org/message-id/87lg86vkrj.fsf@jsievers.enova.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gsievers19@comcast.net, wolfgang.brandl@brz.gv.at
  Subject: Re: restart_after_crash
  In-Reply-To: <87lg86vkrj.fsf@jsievers.enova.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