From: David Steele <david@pgmasters.net>
To: Andres Freund <andres@anarazel.de>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Sergei Kornilov <sk@zsrv.org>
Cc: Postgres hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf
Date: Mon, 26 Nov 2018 14:36:56 -0500
Message-ID: <fd69fa25-7ad3-dafa-b4a9-cac33bb9c70f@pgmasters.net> (raw)
In-Reply-To: <20181126181506.fyrwk42kt2hp4qni@alap3.anarazel.de>
References: <20181126151852.GW3415@tamriel.snowman.net>
<20181126180943.fdj3dkajqtqifekb@alvherre.pgsql>
<20181126181506.fyrwk42kt2hp4qni@alap3.anarazel.de>
On 11/26/18 1:15 PM, Andres Freund wrote:
> On 2018-11-26 15:09:43 -0300, Alvaro Herrera wrote:
>> On 2018-Nov-26, Stephen Frost wrote:
>>
>>> I would think we'd have the different GUCs and then the check functions
>>> would only validate that they're valid inputs and then when we get to
>>> the point where we're starting to do recovery we check and make sure
>>> we've been given a sane overall configuration- which means that only
>>> *one* is set, and it matches the recovery target requested.
>>
>> I don't quite understand why it isn't sensible to specify more than one
>> and just stop recovery (or whatever) when at least one of them becomes
>> true. Maybe I want to terminate just before commit of transaction
>> 12345, but no later than 2018-11-11 12:47 in any case.
>
> +1
-1. At least for now.
Prior to this patch the last target specified in recovery.conf was the
one used, not a combination of them.
The committed patch did not propose to change that behavior as far as I
can see. Since there is no way to determine the order of GUCs like
there was for options in recovery.conf, I think it makes sense to
restrict it to a single target type for now. This is not exactly the
behavior we had before but I think it comes the closest.
Allowing multiple targets could be considered as a separate patch if
anyone is interested.
Regards,
--
-David
david@pgmasters.net
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: david@pgmasters.net, andres@anarazel.de, alvherre@2ndquadrant.com, sfrost@snowman.net, michael@paquier.xyz, peter.eisentraut@2ndquadrant.com, sk@zsrv.org, pgsql-hackers@postgresql.org
Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf
In-Reply-To: <fd69fa25-7ad3-dafa-b4a9-cac33bb9c70f@pgmasters.net>
References: <20181126151852.GW3415@tamriel.snowman.net> <20181126180943.fdj3dkajqtqifekb@alvherre.pgsql> <20181126181506.fyrwk42kt2hp4qni@alap3.anarazel.de> <fd69fa25-7ad3-dafa-b4a9-cac33bb9c70f@pgmasters.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