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 1gSFBM-0002R6-9S for pgsql-docs@arkaria.postgresql.org; Thu, 29 Nov 2018 05:48:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gSFBK-0003KF-QR for pgsql-docs@arkaria.postgresql.org; Thu, 29 Nov 2018 05:48:10 +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 1gSFBK-0003K7-KX for pgsql-docs@lists.postgresql.org; Thu, 29 Nov 2018 05:48:10 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gSFBI-0003S1-00 for pgsql-docs@lists.postgresql.org; Thu, 29 Nov 2018 05:48:09 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 127075F7AC; Thu, 29 Nov 2018 00:48:05 -0500 (EST) Date: Thu, 29 Nov 2018 00:48:05 -0500 From: Stephen Frost To: Michael Paquier Cc: splarv@ya.ru, pgsql-docs@lists.postgresql.org Subject: Re: Return codes for archive and restore commands Message-ID: <20181129054805.GX3415@tamriel.snowman.net> References: <154340283171.1324.10549444217937216132@wrigleys.postgresql.org> <20181129022347.GH626@paquier.xyz> <20181129023957.GU3415@tamriel.snowman.net> <20181129032542.GL626@paquier.xyz> <20181129032731.GV3415@tamriel.snowman.net> <20181129054220.GM626@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZQM8ZPXYE8y2mYWT" Content-Disposition: inline In-Reply-To: <20181129054220.GM626@paquier.xyz> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ZQM8ZPXYE8y2mYWT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Michael Paquier (michael@paquier.xyz) wrote: > On Wed, Nov 28, 2018 at 10:27:31PM -0500, Stephen Frost wrote: > > Yes, it couldn't be exactly the same as a generic background worker, > > that's a good point. We definitely need to make sure that the > > postmaster waits for the archiver to shut down, as it does for the WAL > > senders. >=20 > Just to be clear, please note I don't think that what removing the > archiver code from the core code is a bad idea, quite the contrary > actually. But I doubt that it would be acceptable to rip off this code > without something which has the same properties and guarantees for any > users depending on it. And archive_command is used a lot. Yes, it's used a lot and I tend to agree that we'll need to have something which replaces it- at least for a while, but we shouldn't let the fact that it's used a lot (because it's the only option in many ways...) lead us to think it's actually a good interface which should be kept forever. We're growing up here and realizing that the initial implementations of things around the edges of the core system, while used extensively, need to be updated to be reliable and resilient and the previous unreliable interfaces need to be deprecated and eventually removed, for the benefit of all of our users who might otherwise think they are as reliable as we all wish that had been when they were initially implemented. Thanks! Stephen --ZQM8ZPXYE8y2mYWT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJb/32VAAoJEO1sijiDR2RVs0kP/RDMbo7Xnvm5vKuipOqrLhFt xrKo6adh2x67LRqOVwm4lhNY79yR6FzhSFZiphGI9fd8fKAp7GTNCIZQsrZSIwqH I/MI1pSxyAdKcBFSsKJV5LUoyKQ+cTYs4JgrYt/daIQJilbLW0JldrOyyGdoe/co RWNajkrjictpz0Ml70GsSrvGD/mwxf3lB5ImtjKY9woNpKlNnCGQmQu0gvTCP/no nPPcqaz8w+11fzcGZd4TocGwLwN1uFJYvP81R29UBTZfHbtz7YWK2fZhW2iPtZI6 CP5YOn7r88tS7kwv4toFk+gTRCC1StTQYDEtJu84gFalMqohfpFPP1SBbvoiGr7c kaLqmrGe5Gk5ur2C3KhdDdZWcgoHZ8WKKgmmtaEkCEY6yJHDN3vHFdF9x0iWXnrT 3uZRoxQiUObI4JU6M3aIp1hOvOVCvh/CJ780F0tntGPwl8zpkiuPGBxo+JjAlrH/ IGFl2O93xBpZOkBeM1Ku+eywsCRbYSxHdamvPaRzL2sCKh4QIJ3OESryrC97F+wy 93cWrt6lV2PE78AHM9lqLw0ama7O3PnTvCJz/bZr+eqO6tvl8zYZ0nkOjP9lPyEe 2KYa8QnARmFWXvrfgTb6fHzhiVk1dywTU0asAiVkwIXjIpIygdECoj1e/CUGM2bq Y5y/KfjpUwxKX/cv5NxZ =P+MO -----END PGP SIGNATURE----- --ZQM8ZPXYE8y2mYWT--