Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRMJX-0004hw-AR for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 19:12:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRMJW-0004Gq-3J for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 19:12:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRMJV-0004Gg-Rk for pgsql-hackers@lists.postgresql.org; Mon, 26 Nov 2018 19:12:57 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRMJT-0007rE-A9 for pgsql-hackers@postgresql.org; Mon, 26 Nov 2018 19:12:57 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 83E0D5F7A4; Mon, 26 Nov 2018 14:12:53 -0500 (EST) Date: Mon, 26 Nov 2018 14:12:53 -0500 From: Stephen Frost To: Sergei Kornilov Cc: Michael Paquier , Peter Eisentraut , Postgres hackers Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf Message-ID: <20181126191253.GZ3415@tamriel.snowman.net> References: <20181126002849.GD1776@paquier.xyz> <27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net> <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vy8H1LsWyIRbmCsz" Content-Disposition: inline In-Reply-To: <145311543257278@sas1-0a6c2e2b59d7.qloud-c.yandex.net> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --vy8H1LsWyIRbmCsz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Sergei Kornilov (sk@zsrv.org) wrote: > > I think I would have done 'if (targetSettingsCount !=3D 1)' here. > Streaming replication does not have any recovery_target. > Well, i can check StandbyModeRequested too and allow 0 recovery_target on= ly for standby mode. Ah. Agreed. > >> =C2=A0-# Multiple targets > >> =C2=A0-# Last entry has priority (note that an array respects the orde= r of items > >> =C2=A0-# 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=E2=80=99s at least fix the currently committed patch before adding = new features or changing how things in recovery work. > +1 Thanks! Stephen --vy8H1LsWyIRbmCsz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJb/EW1AAoJEO1sijiDR2RVZn8QAI++8mP4KuF8qo3fbQklqPrs 4JD+0t0CmuzCqi4LTD7HKONkOB3b+4xBVrXjhiYVDcHj9S1o4kj3Vumb6BZ5JtHV YkMx3T3SuEFlG10+h9a0ahp3b9sWSupA74DYGUPK/v/L03xcxqXz+eM6SQJB6l8m oBzYsGtUl5u+YVrIP068pc7MI0WPrctk8vG2CDSICy2yweJW+tqjoj4r7iI+2zck yuneEdYKUCePb0huocPJBjNneV7rDkVdzcgOjTEbovLo8+gy29rGqTLX5WIxdsQ0 uyMXYz6oZRLBs+1LB6dlddoKiA4wqJpJ9+Mb9EGopPs697+FN7Ug+srYInsWjQEY P1z5ernwhmOnJcLsNghCnkD+0PQtEeHmVsego93EQxEtz7f2NlNl8bb86ztBDoMJ jpMeXhsN4EBZFOdcuZE4fA2IZdjdh0aGJIEAF8TD2ZZ5hqgLV0kjeH/O4iCZ9Rrs hwLR24uA8kg/NNKLKIJ94wA2FkHkZbTcvgOjrhaxzxihDmJ29OzCMG6JWlOND9UQ dZNYIqj8a6McIyK+J7ng2irPibqjVvYPQ0QQsN4QOC7XXNMpTSovk6zjRgqtfICi LEw3kIEH6UA/+hFH+PszKQPTSVxlJTUA+YXXk5noA3HQhv0o4fl7uEoGkKjdaDT4 Z9H/gQ/MU3HT9Q/TMcyl =Rz76 -----END PGP SIGNATURE----- --vy8H1LsWyIRbmCsz--