pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_restore: Require "-f -" to mean stdout
Date: Thu, 04 Apr 2019 19:55:36 +0000
Message-ID: <E1hC8SW-0000ur-9N@gemulon.postgresql.org> (raw)

pg_restore: Require "-f -" to mean stdout

The previous convention that stdout was selected by default when nothing
is specified was just too error-prone.

After a suggestion from Andrew Gierth.
Author: Euler Taveira
Reviewed-by: Yoshikazu Imai, José Arthur Benetasso Villanova
Discussion: https://postgr.es/m/87sgwrmhdv.fsf@news-spur.riddles.org.uk

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/413ccaa74d9a126b042727c826e65e2844adadac

Modified Files
--------------
doc/src/sgml/ref/pg_restore.sgml     |  4 ++--
src/bin/pg_dump/pg_backup_archiver.c |  7 ++++++-
src/bin/pg_dump/pg_restore.c         |  9 ++++++++-
src/bin/pg_dump/t/001_basic.pl       | 22 ++++++++++++++--------
4 files changed, 30 insertions(+), 12 deletions(-)



Message-ID: <E1hC8SW-0000ur-9N@gemulon.postgresql.org>
Permalink:  ../E1hC8SW-0000ur-9N@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hC8SW-0000ur-9N@gemulon.postgresql.org

 · 

reply

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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: pg_restore: Require "-f -" to mean stdout
  In-Reply-To: <E1hC8SW-0000ur-9N@gemulon.postgresql.org>
  References: <E1hC8SW-0000ur-9N@gemulon.postgresql.org>

* 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