From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Disallow starting server with insufficient wal_level for existin
Date: Wed, 31 Oct 2018 22:47:28 +0000
Message-ID: <E1gHzGq-0000sW-DZ@gemulon.postgresql.org> (raw)
Disallow starting server with insufficient wal_level for existing slot.
Previously it was possible to create a slot, change wal_level, and
restart, even if the new wal_level was insufficient for the
slot. That's a problem for both logical and physical slots, because
the necessary WAL records are not generated.
This removes a few tests in newer versions that, somewhat
inexplicably, whether restarting with a too low wal_level worked (a
buggy behaviour!).
Reported-By: Joshua D. Drake
Author: Andres Freund
Discussion: https://postgr.es/m/20181029191304.lbsmhshkyymhw22w@alap3.anarazel.de
Backpatch: 9.4-, where replication slots where introduced
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/691d79a0793328a45b01348675ba677aa7623bec
Modified Files
--------------
src/backend/replication/logical/logical.c | 5 +++++
src/backend/replication/slot.c | 30 +++++++++++++++++++++++++++++
src/test/recovery/t/006_logical_decoding.pl | 23 +---------------------
3 files changed, 36 insertions(+), 22 deletions(-)
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: andres@anarazel.de
Subject: Re: pgsql: Disallow starting server with insufficient wal_level for existin
In-Reply-To: <E1gHzGq-0000sW-DZ@gemulon.postgresql.org>
References: <E1gHzGq-0000sW-DZ@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