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

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

               http://www.postgresql.org/about/donate

Reply via email to