Re: allowing wal_level change at run time - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: allowing wal_level change at run time
Date
Msg-id 55D335FA.3050209@gmx.net
Whole thread Raw
In response to Re: allowing wal_level change at run time  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: allowing wal_level change at run time  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 8/18/15 8:48 AM, Robert Haas wrote:
> On Tue, Aug 18, 2015 at 7:59 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
>> How would we handle decreases at run time?  We can prevent >=archive ->
>> minimal if archiving is running or there are physical replication slots,
>> and we can prevent logical -> something less if there are logical
>> replication slots, but AFAICT, we don't have a way to check whether
>> anyone currently needs level hot_standby.
> 
> What do you mean by "prevent"?  If the user edits postgresql.conf and
> reduces the setting, and then reloads the configuration file, they
> have a right to expect that the changes got applied.

We have certain checks in place that require a minimum wal_level before
other things are allowed.  For example, turning on archiving requires
wal_level >= archive.  The issue is then, if you have archiving on and
then turn wal_level to minimal at run time, we need to prevent that to
preserve the integrity of the original check.





pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Warnings around booleans
Next
From: David Fetter
Date:
Subject: Re: Declarative partitioning