psql: Improve error display for psql -f -

Peter Eisentraut <peter_e@gmx.net>

Commit: 89c2f573a392e3995fffc619d4faed23f8649269
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2012-03-01T17:58:10Z
Releases: 9.2.0
psql: Improve error display for psql -f -

Running "psql -f -" used to print

psql:<stdin>:1: ERROR:  blah

but that got broken between 8.4 and 9.0 (commit
b291c0fba83a1e93868e2f69c03be195d620f30c), and now it printed

psql:-:1: ERROR:  blah

This reverts to the old behavior and cleans up some code that was left
dead or useless by the mentioned commit.

Files

PathChange+/−
src/bin/psql/command.c modified +8 −5
src/bin/psql/startup.c modified +0 −2