Re: psql -f doesn't complain about directories

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: psql -f doesn't complain about directories
Дата
Msg-id 473B5825.2000007@dunslane.net
обсуждение исходный текст
Ответ на Re: psql -f doesn't complain about directories  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers

Alvaro Herrera wrote:
> 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?)
>   

I don't see why not.

cheers

andrew


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: psql -f doesn't complain about directories
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: psql -f doesn't complain about directories