Re: psql -f doesn't complain about directories

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: psql -f doesn't complain about directories
Дата
Msg-id 20071114201941.GB13620@svana.org
обсуждение исходный текст
Ответ на Re: psql -f doesn't complain about directories  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: psql -f doesn't complain about directories  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Re: psql -f doesn't complain about directories  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Wed, Nov 14, 2007 at 05:15:20PM -0300, Alvaro Herrera wrote:
> > Should we do some kind of stat() before opening the file and abort if it's a
> > directory?
>
> Actually anything other than a plain file, right?  (Do we really want to
> be able to psql -f a_pipe?)

Sure, why not. To be honest I think that psql shouldn't be ignoring the
EISDIR error the kernel is returning.

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 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: psql -f doesn't complain about directories
Следующее
От: Zdenek Kotala
Дата:
Сообщение: Re: psql -f doesn't complain about directories