[HACKERS] Should psql exit when the log file can't be written into?

2015-12-08 Thread Daniel Verite
Hi, Following last week's commit 344cdff : Author: Tom Lane Date: Thu Dec 3 14:28:58 2015 -0500 Clean up some psql issues around handling of the query output file. Formerly, if "psql -o foo" failed to open the output file "foo", it would print an error

Re: [HACKERS] Should psql exit when the log file can't be written into?

2015-12-08 Thread Tom Lane
"Daniel Verite" writes: > I notice that --log-file also reports an error but continues nonetheless > if the file can't be opened. > The attached trivial patch makes it fail and exit instead. I agree with doing that. > Also there's the fact that once opened, psql