View Single Post

   
  #3 (permalink)  
Old 04-15-2008, 11:33 PM
Andrew Dunstan
 
Posts: n/a
Default Re: psql -f doesn't complain about directories



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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote