Re: psql -f doesn't complain about directories

Поиск
Список
Период
Сортировка
От 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  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: psql -f doesn't complain about directories
Следующее
От: Tom Lane
Дата:
Сообщение: Heads up: 8.3beta3 to be wrapped this evening