Re: psql -f doesn't complain about directories

Поиск
Список
Период
Сортировка
Peter Eisentraut wrote:
> Letting psql execute a script file that is really a directory doesn't complain 
> at all:
> 
> $ psql -f /tmp
> 
> 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?)

-- 
Alvaro Herrera                          Developer, http://www.PostgreSQL.org/
Essentially, you're proposing Kevlar shoes as a solution for the problem
that you want to walk around carrying a loaded gun aimed at your foot.
(Tom Lane)


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: [PATCHES] a tsearch2 (8.2.4) dictionary that only filters out stopwords
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: psql -f doesn't complain about directories