pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Sergei Kornilov <sk@zsrv.org>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf
Date: Tue, 27 Nov 2018 09:39:23 -0500
Message-ID: <20181127143923.GS3415@tamriel.snowman.net> (raw)
In-Reply-To: <c17e63ce-b78a-dbb5-8fd1-30b2984a53b4@2ndquadrant.com>
References: <20181126151852.GW3415@tamriel.snowman.net>
	<29465041543250389@iva4-f774db2b5297.qloud-c.yandex.net>
	<20181126172118.GY3415@tamriel.snowman.net>
	<145311543257278@sas1-0a6c2e2b59d7.qloud-c.yandex.net>
	<20181126191253.GZ3415@tamriel.snowman.net>
	<457381543264217@iva5-84bc572481fe.qloud-c.yandex.net>
	<873d2d6b-8a85-2274-7222-abe2f0602f5d@2ndquadrant.com>
	<3206661543309827@sas2-b4ed770db137.qloud-c.yandex.net>
	<362e291f-2442-3bbf-62f5-dde97beb3940@2ndquadrant.com>
	<c17e63ce-b78a-dbb5-8fd1-30b2984a53b4@2ndquadrant.com>

Greetings,

* Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote:
> On 27/11/2018 13:29, Peter Eisentraut wrote:
> > On 27/11/2018 10:10, Sergei Kornilov wrote:
> >>>>  - recovery_target = immediate was replaced with recovery_target_immediate bool GUC
> >>>
> >>> Why?
> >> Due this comment: https://www.postgresql.org/message-id/20181126172118.GY3415%40tamriel.snowman.net
> >>> I've not been following this very closely, but seems like
> >>> recovery_target_string is a bad idea.. Why not just make that
> >>> 'recovery_target_immediate' and make it a boolean? Having a GUC that's
> >>> only got one valid value seems really odd.
> > 
> > It is a bit odd, but that's the way it's been, and I don't see a reason
> > to change it as part of this fix.  We are attempting to fix the way the
> > GUC parameters are parsed, not change the name and meaning of the
> > parameters themselves.

I disagree quite a bit- we're whacking around how recovery works and
this has been a wart since it went in because the contemplated later
changes to have more than one value be accepted there never
materialized, so we might as well change it while we're changing
everything else and clean it up.

If we really want to change it later we can do that, but we've evidently
decided to go the opposite direction and have multiple GUCs instead, so
let's be consistent.

> The attached seems to be the simplest way to fix this.  (Needs
> documentation updates, test updates, error message refinement.)

Sure, this approach seems fine to me and is perhaps a bit cleaner.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (29+ messages)  latest in thread

Message-ID: <20181127143923.GS3415@tamriel.snowman.net>
Permalink:  ../20181127143923.GS3415@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20181127143923.GS3415@tamriel.snowman.net

 · 

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: sfrost@snowman.net, peter.eisentraut@2ndquadrant.com, sk@zsrv.org, michael@paquier.xyz, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf
  In-Reply-To: <20181127143923.GS3415@tamriel.snowman.net>
  References: <20181126151852.GW3415@tamriel.snowman.net> <29465041543250389@iva4-f774db2b5297.qloud-c.yandex.net> <20181126172118.GY3415@tamriel.snowman.net> <145311543257278@sas1-0a6c2e2b59d7.qloud-c.yandex.net> <20181126191253.GZ3415@tamriel.snowman.net> <457381543264217@iva5-84bc572481fe.qloud-c.yandex.net> <873d2d6b-8a85-2274-7222-abe2f0602f5d@2ndquadrant.com> <3206661543309827@sas2-b4ed770db137.qloud-c.yandex.net> <362e291f-2442-3bbf-62f5-dde97beb3940@2ndquadrant.com> <c17e63ce-b78a-dbb5-8fd1-30b2984a53b4@2ndquadrant.com> <20181127143923.GS3415@tamriel.snowman.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