pgsql: psql: complain if pg_dump custom-format is detected

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: psql: complain if pg_dump custom-format is detected
Date: 2014-10-24 10:16:48
Message-ID: E1XhbvN-0004Vf-01@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: complain if pg_dump custom-format is detected

Apparently, this is a very common mistake for users to make; it is
better to have it fail reasonably rather than throw potentially a large
number of errors. Since we have a magic string at the start of the
file, we can detect the case easily and there's no other possible useful
behavior anyway.

Author: Craig Ringer

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3c2aa0c6f27fc921c881b3bf0b6df03fdf557304

Modified Files
--------------
src/bin/psql/mainloop.c | 12 ++++++++++++
1 file changed, 12 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2014-10-24 13:04:08 pgsql: Fix off-by-one error in 2781b4bea7db357be59f9a5fd73ca1eb12ff5a79
Previous Message Tom Lane 2014-10-24 04:01:33 Re: pgsql: Perform less setup work for AFTER triggers at transaction start.