Re: Patch for checking file parameters to psql before password prompt
Stephen Frost <sfrost@snowman.net>
From: Stephen Frost <sfrost@snowman.net>
To: Josh Kupershmidt <schmiddy@gmail.com>
Cc: Alastair Turner <bell@ctrlf5.co.za>, pgsql-hackers@postgresql.org
Date: 2012-12-29T20:10:00Z
Lists: 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