pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Only allow one recovery target setting
Date: Wed, 28 Nov 2018 13:25:06 +0000
Message-ID: <E1gRzpy-0000j5-NQ@gemulon.postgresql.org> (raw)

Only allow one recovery target setting

The previous recovery.conf regime accepted multiple recovery_target*
settings and used the last one.  This does not translate well to the
general GUC system.  Specifically, under EXEC_BACKEND, the settings
are written out not in any particular order, so the order in which
they were originally set is not available to new processes.

Rather than redesign the GUC system, it was decided to abandon the old
behavior and only allow one recovery target setting.  A second setting
will cause an error.  However, it is allowed to set the same parameter
multiple times or unset a parameter and set a different one.

Discussion: https://www.postgresql.org/message-id/flat/27802171543235530%40iva2-6ec8f0a6115e.qloud-c.yandex.net#...

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/config.sgml                    |  2 +-
src/backend/utils/misc/guc.c                | 46 ++++++++++++++++++++++++++---
src/test/recovery/t/003_recovery_targets.pl | 46 ++++++++++++-----------------
3 files changed, 62 insertions(+), 32 deletions(-)



Message-ID: <E1gRzpy-0000j5-NQ@gemulon.postgresql.org>
Permalink:  ../E1gRzpy-0000j5-NQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gRzpy-0000j5-NQ@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_e@gmx.net
  Subject: Re: pgsql: Only allow one recovery target setting
  In-Reply-To: <E1gRzpy-0000j5-NQ@gemulon.postgresql.org>
  References: <E1gRzpy-0000j5-NQ@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