On Sat, Nov 26, 2011 at 3:36 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> There is a long-standing oddity in psql that running
> psql -f foo.sql
> returns error messages with file name and line number, like
> psql:foo.sql:1: ERROR: syntax error at or near "foo"
> but running
> psql < foo.sql does not. I suggest we change the latter to print
> psql:<stdin>:1: ERROR: syntax error at or near "foo"
> Other examples for the use of the spelling "<stdin>" in this context
> include gcc and slonik.
> Error messages printed in interactive mode will not be affected, of
> Patch attached.
Seems like a good idea to me.
The Enterprise PostgreSQL Company
In response to
pgsql-hackers by date
|Next:||From: Robert Haas||Date: 2011-11-28 13:12:23|
|Subject: Re: odbc_fdw|
|Previous:||From: Andrew Dunstan||Date: 2011-11-28 12:56:47|
|Subject: Re: Patch: Perl xsubpp|