| От | Peter Eisentraut |
|---|---|
| Тема | psql line number reporting from stdin |
| Дата | |
| Msg-id | 1322339775.8179.6.camel@vanquo.pezone.net обсуждение исходный текст |
| Ответы |
Re: psql line number reporting from stdin
Re: psql line number reporting from stdin Re: psql line number reporting from stdin Re: psql line number reporting from stdin Re: psql line number reporting from stdin |
| Список | pgsql-hackers |
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 course. Patch attached.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера