| От | Tom Lane |
|---|---|
| Тема | Re: psql -f doesn't complain about directories |
| Дата | |
| Msg-id | 4453.1195146194@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: psql -f doesn't complain about directories (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: psql -f doesn't complain about directories
|
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
> Am Donnerstag, 15. November 2007 schrieb Tom Lane:
>> This seems too far removed from the scene of the crime
> Yeah, my zeroth attempt was to place this in gets_fromFile(), but there you
> don't have any opportunity to report failure to the main loop. We'd need to
> change the function signature to be able to pass that around. Maybe that's
> better overall.
Well, you could still handle that the same as in your patch: on NULL
return, check ferror. It's just that I don't trust errno to stay
unchanged for very long.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера