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 1iIBL4-00059J-7N for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Oct 2019 12:45:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIBL3-000292-2M for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Oct 2019 12:45:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIBL2-00028n-N9 for pgsql-hackers@lists.postgresql.org; Wed, 09 Oct 2019 12:45:08 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1iIBL0-0004aR-Hk for pgsql-hackers@lists.postgresql.org; Wed, 09 Oct 2019 12:45:07 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id DC00A5F79F; Wed, 9 Oct 2019 08:45:05 -0400 (EDT) Date: Wed, 9 Oct 2019 08:45:05 -0400 From: Stephen Frost To: Euler Taveira Cc: Tom Lane , Andrew Gierth , Justin Pryzby , PostgreSQL Hackers Subject: Re: v12 and pg_restore -f- Message-ID: <20191009124505.GT6962@tamriel.snowman.net> References: <20191006190839.GE18030@telsasoft.com> <28770.1570394593@sss.pgh.pa.us> <875zl11tla.fsf@news-spur.riddles.org.uk> <30069.1570396524@sss.pgh.pa.us> <20191008180840.GQ6962@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gTG97tFtjB84YZWw" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --gTG97tFtjB84YZWw Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Euler Taveira (euler@timbira.com.br) wrote: > Em ter, 8 de out de 2019 =E0s 15:08, Stephen Frost e= screveu: > > * Tom Lane (tgl@sss.pgh.pa.us) wrote: > > > Andrew Gierth writes: > > > > "Tom" =3D=3D Tom Lane writes: > > > > Tom> Perhaps we could change the back branches so that they interp= ret > > > > Tom> "-f -" as "write to stdout", but without enforcing that you u= se > > > > Tom> that syntax. > > > > > > > We should definitely do that. > > > > I agree that this would be a reasonable course of action. Really, it > > should have always meant that... > > > Indeed, it was a broken behavior and the idea was to fix it. However, > changing pg_restore in back-branches is worse than do nothing because > it could break existent scripts. I can certainly respect that argument, in general, but in this specific case, I've got a really hard time believeing that people wrote scripts which use '-f -' with the expectation that a './-' file was to be created. Thanks, Stephen --gTG97tFtjB84YZWw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdndZRAAoJEO1sijiDR2RVpZsP/jOku/Q9F1WiFO/6BqoQb08F xdRvMzKpHhcxolJHkLZ1K/KIcVOw170y4iU5rzVRvuQ7Y6Aa76XF4ibi8LiGKQ9a /4kBD7UaqTGtb8NxwIMgMQJnhdGwemT7XcxkYtrsjExDP8u5ObyTzb6tXX3R6Jlg yNp5OonmyDa0ruIVSBoDhMGAAO2cMYlLvdy9tSvz/YjlUAVZ3SJYo590+kGTtz/U h7F1Eg0/RqIM/F5Kq/Tudkj11NP2jFb6wl7jH+9Vi6JyzPhxUcjwnd6PtkP35/RX rnc6rwyZ+LIaKJhGUWd5Ve8//Dz0EFbNWKWmZzUJnvxNFRbB8U41DO/pAVfdi/P7 4wx7P4liC1zOYzHDD1HsQANeRgrP9Y7azvcsgC+QLmWTSzmwjUv4TbMqIOEY83T1 7PNe1TZ7+diIVEftoUXB2lx7jxigkjn2GaPi87mtDhWnYUehX9wBnKOvM7vWVjFr yjHF1XvImQYixxbkLoQ/7DDthYxcaIyZY9CorhqOSSJcaIswOEdVSMlJLVQY/Ggi AhmS24/qzW8NgNkldZ3yKjq9WjFkPNdZir3tf1XvUEH3sswPrBE9nmd/r2M7QgTj k8bqenO0QBWjKWQUP3XzhSioEL0wpqNXrk1qLxMTP26btTfbUrDP/lBSIWcjbPCU ugUlSykbGMx8VcB/n+7n =wq/6 -----END PGP SIGNATURE----- --gTG97tFtjB84YZWw--