Re: Patch for checking file parameters to psql before password prompt - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: Patch for checking file parameters to psql before password prompt
Date
Msg-id 20121229201000.GC16126@tamriel.snowman.net
Whole thread Raw
In response to Re: Patch for checking file parameters to psql before password prompt  (Josh Kupershmidt <schmiddy@gmail.com>)
List 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 by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: enhanced error fields
Next
From: Peter Geoghegan
Date:
Subject: Re: enhanced error fields