From: Stephen Frost <sfrost@snowman.net>
To: Sergei Kornilov <sk@zsrv.org>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Postgres hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf
Date: Mon, 26 Nov 2018 14:12:53 -0500
Message-ID: <20181126191253.GZ3415@tamriel.snowman.net> (raw)
In-Reply-To: <145311543257278@sas1-0a6c2e2b59d7.qloud-c.yandex.net>
References: <E1gQwex-0001Vd-OW@gemulon.postgresql.org>
<20181126002849.GD1776@paquier.xyz>
<27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net>
<cd804d8f-0873-f81c-2420-2f1b0f99d889@2ndquadrant.com>
<20181126131640.GD14598@paquier.xyz>
<20181126151852.GW3415@tamriel.snowman.net>
<29465041543250389@iva4-f774db2b5297.qloud-c.yandex.net>
<20181126172118.GY3415@tamriel.snowman.net>
<145311543257278@sas1-0a6c2e2b59d7.qloud-c.yandex.net>
Greetings,
* Sergei Kornilov (sk@zsrv.org) wrote:
> > I think I would have done 'if (targetSettingsCount != 1)' here.
> Streaming replication does not have any recovery_target.
> Well, i can check StandbyModeRequested too and allow 0 recovery_target only for standby mode.
Ah. Agreed.
> >> -# Multiple targets
> >> -# Last entry has priority (note that an array respects the order of items
> >> -# not hashes).
> >
> > You could (and imv should) include a test that throws an expected error
> > if multiple targets are specified.
> We have some example for checking unable-to-start DB? Did not find yet
The TAP system in general supports expected failures, but that might
only be with the simple binaries, not sure. I know src/bin/pg_dump has
those though.
> > Let’s at least fix the currently committed patch before adding new features or changing how things in recovery work.
> +1
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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, sk@zsrv.org, michael@paquier.xyz, peter.eisentraut@2ndquadrant.com, pgsql-hackers@postgresql.org
Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf
In-Reply-To: <20181126191253.GZ3415@tamriel.snowman.net>
References: <E1gQwex-0001Vd-OW@gemulon.postgresql.org> <20181126002849.GD1776@paquier.xyz> <27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net> <cd804d8f-0873-f81c-2420-2f1b0f99d889@2ndquadrant.com> <20181126131640.GD14598@paquier.xyz> <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>
* 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