| От | Peter Eisentraut |
|---|---|
| Тема | Re: psql line number reporting from stdin |
| Дата | |
| Msg-id | 1322933252.26266.3.camel@vanquo.pezone.net обсуждение исходный текст |
| Ответ на | psql line number reporting from stdin (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
On lör, 2011-11-26 at 22:36 +0200, Peter Eisentraut 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" It turns out that running psql -f - already used to print psql:<stdin>:1: ERROR: blah except that it got broken between 8.4 and 9.0 (commit b291c0fb), and now prints psql:-:1: ERROR: blah I'll try to find a way to fix that and integrate it with the change I'm proposing.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера