Re: Patch for checking file parameters to psql before password prompt

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Patch for checking file parameters to psql before password prompt
Дата
Msg-id 20121229201000.GC16126@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Patch for checking file parameters to psql before password prompt  (Josh Kupershmidt <schmiddy@gmail.com>)
Список pgsql-hackers
Josh,

* Josh Kupershmidt (schmiddy@gmail.com) wrote:
> I assume you meant "-L" instead of "-l" here for specifying psql's log
> file. I don't think that the inability to write to psql's log file
> should be treated as a fatal error, especially since it is not treated
> as such by the current code:

I disagree- if we're being asked to log or to send output somewhere, we
should error out if we're unable to do so.  Consider doing that from the
shell:

sfrost@beorn:~$ psql > /bin/qq
bash: /bin/qq: Permission denied
sfrost@beorn:~$
Thanks,
    Stephen

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: enhanced error fields
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: enhanced error fields