Make psql -1 < file behave as expected.

Robert Haas <rhaas@postgresql.org>

Commit: be690e291d59e8d0c9f4df59abe09f1ff6cc0da9
Author: Robert Haas <rhaas@postgresql.org>
Date: 2012-08-09T14:02:50Z
Releases: 9.3.0
Make psql -1 < file behave as expected.

Previously, the -1 option was silently ignored.

Also, emit an error if -1 is used in a context where it won't be
respected, to avoid user confusion.

Original patch by Fabien COELHO, but this version is quite different
from the original submission.

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +5 −5
src/bin/psql/command.c modified +5 −3
src/bin/psql/help.c modified +1 −1
src/bin/psql/startup.c modified +23 −4