Re: psql -f doesn't complain about directories

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: psql -f doesn't complain about directories
Дата
Msg-id 20071114214220.GD13620@svana.org
обсуждение исходный текст
Ответ на 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
On Wed, Nov 14, 2007 at 10:25:23PM +0100, Peter Eisentraut wrote:
> Martijn van Oosterhout wrote:
> > To be honest I think that psql shouldn't be ignoring the
> > EISDIR error the kernel is returning.
>
> We use fopen(), which doesn't appear to pass that on.

It's not the fopen that fails, it's the fgets that returns NULL. We
don't subsequently check if that's due to an I/O error or EISDIR or if
it's an end-of-file.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
>  -- John F Kennedy

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: psql -f doesn't complain about directories
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Simplifying Text Search