]> granicus.if.org Git - postgresql/commit
psql: complain if pg_dump custom-format is detected
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 24 Oct 2014 10:14:09 +0000 (07:14 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 24 Oct 2014 10:14:09 +0000 (07:14 -0300)
commit3c2aa0c6f27fc921c881b3bf0b6df03fdf557304
treeef071cc4abb482ad2089861d4d42a86913688b43
parentb01a4f68386f8bbc62c308138f23e436cb274629
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
src/bin/psql/mainloop.c