Re: psql -f doesn't complain about directories
От | Alvaro Herrera |
---|---|
Тема | Re: psql -f doesn't complain about directories |
Дата | |
Msg-id | 20071114201519.GV19014@alvh.no-ip.org обсуждение исходный текст |
Ответ на | psql -f doesn't complain about directories (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: psql -f doesn't complain about directories
Re: psql -f doesn't complain about directories Re: psql -f doesn't complain about directories Re: psql -f doesn't complain about directories |
Список | pgsql-hackers |
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 по дате отправления: