]> granicus.if.org Git - postgresql/commit
psql: Improve error display for psql -f -
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 1 Mar 2012 17:58:10 +0000 (19:58 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 1 Mar 2012 17:58:10 +0000 (19:58 +0200)
commit89c2f573a392e3995fffc619d4faed23f8649269
tree6d18aabed73d306a9664c81828633e3d8cc26b57
parent3433c6ba002f711a60352c3518f30cda73d06087
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.
src/bin/psql/command.c
src/bin/psql/startup.c