pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fail if recovery target is not reached
Date: Wed, 29 Jan 2020 14:58:54 +0000
Message-ID: <E1iwonu-0005Bd-6j@gemulon.postgresql.org> (raw)

Fail if recovery target is not reached

Before, if a recovery target is configured, but the archive ended
before the target was reached, recovery would end and the server would
promote without further notice.  That was deemed to be pretty wrong.
With this change, if the recovery target is not reached, it is a fatal
error.

Based-on-patch-by: Leif Gunnar Erlandsen <leif@lako.no>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/993736dd3f1713ec1f63fc3b653839f5@lako.no

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dc788668bb269b10a108e87d14fefd1b9301b793

Modified Files
--------------
doc/src/sgml/config.sgml                    |  5 +++++
src/backend/access/transam/xlog.c           | 19 +++++++++++++----
src/test/perl/PostgresNode.pm               | 33 ++++++++++++++++++++++++++---
src/test/recovery/t/003_recovery_targets.pl | 24 ++++++++++++++++++++-
4 files changed, 73 insertions(+), 8 deletions(-)



Message-ID: <E1iwonu-0005Bd-6j@gemulon.postgresql.org>
Permalink:  ../E1iwonu-0005Bd-6j@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iwonu-0005Bd-6j@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Fail if recovery target is not reached
  In-Reply-To: <E1iwonu-0005Bd-6j@gemulon.postgresql.org>
  References: <E1iwonu-0005Bd-6j@gemulon.postgresql.org>

* 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