pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: jlucasdba@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15989: Cluster unable to open as hot standby after SIGKILL during exclusive backup
Date: Tue, 3 Sep 2019 12:30:43 -0400
Message-ID: <20190903163043.GO16436@tamriel.snowman.net> (raw)
In-Reply-To: <15989-bf9dee713231e7b0@postgresql.org>
References: <15989-bf9dee713231e7b0@postgresql.org>

Greetings,

* PG Bug reporting form (noreply@postgresql.org) wrote:
> * Enable exclusive backup
> psql -c "select pg_start_backup('')"
> 
> * Find pid of main postgres process
> ps -ef | grep 'postgres -D'
> 
> * Send SIGKILL to found pid
> kill -s KILL <pid>

Don't kill the postmaster and don't use exclusive backup (which has been
deprecated, due specifically in part to the issue that it causes
problems on a crash).

> This is particularly a problem when running postgres in Docker, as Docker
> will send SIGKILL if database shutdown takes more than a few seconds.

You'll want to fix that then.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (2+ messages)

Message-ID: <20190903163043.GO16436@tamriel.snowman.net>
Permalink:  ../20190903163043.GO16436@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20190903163043.GO16436@tamriel.snowman.net

 · 

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-bugs@postgresql.org
  Cc: sfrost@snowman.net, jlucasdba@gmail.com
  Subject: Re: BUG #15989: Cluster unable to open as hot standby after SIGKILL during exclusive backup
  In-Reply-To: <20190903163043.GO16436@tamriel.snowman.net>
  References: <15989-bf9dee713231e7b0@postgresql.org> <20190903163043.GO16436@tamriel.snowman.net>

* 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