Re: psql -f doesn't complain about directories - Mailing list pgsql-hackers

From Zdenek Kotala
Subject Re: psql -f doesn't complain about directories
Date
Msg-id 473B5BE0.7070906@sun.com
Whole thread Raw
In response to Re: psql -f doesn't complain about directories  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List 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?)
> 

What's about symlink to regular file/pipe?

Zdenek


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: psql -f doesn't complain about directories
Next
From: Peter Eisentraut
Date:
Subject: Re: Simplifying Text Search