| От | Tom Lane |
|---|---|
| Тема | psql ignores failure to open -o target file |
| Дата | |
| Msg-id | 26258.1449072478@sss.pgh.pa.us обсуждение исходный текст |
| Ответы |
Re: psql ignores failure to open -o target file
Re: psql ignores failure to open -o target file |
| Список | pgsql-hackers |
I just noticed that parse_psql_options() ignores the result of setQFout(),
meaning that if the argument of a -o command line option is bogus, we'll
ignore the switch entirely after printing an error report. For example
$ psql -o /dev/foo -c 'select 1'
/dev/foo: Permission denied?column?
---------- 1
(1 row)
$
This seems surprising to me: any other program in the world would do
exit(1) after discovering that it couldn't write where it had been
told to. Should we change this?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера