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 1iLDrN-0008Nu-K6 for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Oct 2019 22:03:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLDrM-0003Vb-C7 for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Oct 2019 22:03:04 +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 1iLDrM-0003VS-2k for pgsql-hackers@lists.postgresql.org; Thu, 17 Oct 2019 22:03:04 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLDrJ-0003Ox-Jo for pgsql-hackers@lists.postgresql.org; Thu, 17 Oct 2019 22:03:03 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 554D45F79F; Thu, 17 Oct 2019 18:02:57 -0400 (EDT) Date: Thu, 17 Oct 2019 18:02:57 -0400 From: Stephen Frost To: Justin Pryzby Cc: Tom Lane , imai.yoshikazu@fujitsu.com, Euler Taveira , Andrew Gierth , PostgreSQL Hackers Subject: Re: v12 and pg_restore -f- Message-ID: <20191017220257.GR6962@tamriel.snowman.net> References: <28770.1570394593@sss.pgh.pa.us> <875zl11tla.fsf@news-spur.riddles.org.uk> <30069.1570396524@sss.pgh.pa.us> <20191008180840.GQ6962@tamriel.snowman.net> <20191009124505.GT6962@tamriel.snowman.net> <20191016172148.GH6962@tamriel.snowman.net> <19891.1571307850@sss.pgh.pa.us> <20191017153006.GA3599@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="X+jhwK2xP5g16mUC" Content-Disposition: inline In-Reply-To: <20191017153006.GA3599@telsasoft.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --X+jhwK2xP5g16mUC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Justin Pryzby (pryzby@telsasoft.com) wrote: > On Thu, Oct 17, 2019 at 12:24:10PM +0200, Tom Lane wrote: > > Alternatively, we could revoke the requirement to use "-f -" in 12, > > and wait a couple releases before enforcing it. The fundamental > > problem here is that we tried to go from "-f - doesn't work" to > > "you must use -f -" with no grace period where "-f - is optional". > > In hindsight that was a bad idea. >=20 > I'm going to make an argument in favour of keeping the enforcement of -f-= in > v12. >=20 > If there's no enforcement, I don't know if many people would naturally st= art to > use -f-, which means that tools which need to work across a wide range of > (minor) versions may never confront this until it's enforced in v14/v15, = at > which point we probably end up revisiting the whole thing again. >=20 > Failing pg_restore forces people to confront the new/different behavior. = If we > defer failing for 2 years, it probably just means it'll be an issue again= 2 > years from now. Absolutely agreed on this- deferring the pain doesn't really change things here. > However, it's still an issue if (old) back branches (like 11.5) don't sup= port > -f-, and I think the differing behavior should be called out in the v12 r= elease > notes, as succinctly as possible. I agree that we should call it out in the release notes, of course, and that, in this case, it's alright to fix the '-f-' bug that exists in the back branches as a bug and not something else. > Also, I'm taking the opportunity to correct myself, before someone else d= oes: >=20 > On Wed, Oct 16, 2019 at 02:28:40PM -0500, Justin Pryzby wrote: > > And vendors (something like pgadmin) will end up "having to" write to a= file > > to be portable, or else check the full version, not just the major vers= ion. >=20 > I take back that part .. before v12, they'd get stdout by not specifying = -f, > and since 12.0 they'd get stdout with -f-. No need to check the minor ve= rsion, > since the "need to" specify -f- wouldn't be backpatched, of course. Ah, yes, that's true. Thanks, Stephen --X+jhwK2xP5g16mUC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdqOUQAAoJEO1sijiDR2RV648P/i+9+VVe/sJindNujJ9OH6ou pxwlSbCrd3ro8FatU60BftHgsr3bO1vik2Uk3Q7NOs6BL949er+Eu7ovyVUzfVjk K3fP31I7dJOVxCeYN3F7tnD0ttNwCkK0Q6hjeOIPvzRQ8CegwCtHeMOoos+vkyvM k5W0lL+Tsboj5dcIiuhhczcw5Q0Xabsu9wl4drPEfrKbiDHeov5ZPnuM6bhWCWjP xlEBQsOaqgL/8irGYy8gO248p8OWjTOcC+zk0DuUzPQOIM5mxqZ1HStAcmcJJidp ijMSZ1qzsnhfe/o8Fq5oO8CKk06hgx1T8Xdu+KdMb2mR9/hDJ8RpPziyKUUCXgdo jjFsMLn3RpUdCCCu1+q834a3YAYqG8NF/y70IgvHNS7xAFioEU42MFKeaOZbbnDZ qfwmpdCesxx+SLOf5wjeYpBgBe3rsxrfilwILIC2DDpCJ3GFwUdAyugGy21KzvbH UjfpLJzTqCz7CaIakwkXWt9ko0U6guUP7oDMIE9aHQWL4LHcT71XK5z6odmg4ndr 8WvDXvcJPechQiyVpeEp1rT9BrKjZfQ7ndc5hCYcBebYjBUVgQGArlEkYZVUrHzI H95aKSrYNzQQP2bOfoGrzBEWtH11DpD07ore4Vk3bz/lmsNa4eEOVh60HqLEJvmw mqmpOrm8XTbm4NS2XIUE =K/p9 -----END PGP SIGNATURE----- --X+jhwK2xP5g16mUC--