Re: [HACKERS] initdb: Improve error recovery.

2014-12-05 Thread Heikki Linnakangas
On 11/27/2014 02:28 PM, Mats Erik Andersson wrote: Hello there, I would like to improve error recovery of initdb when the password file is empty. The present code declares "Error 0" as the cause of failure. It suffices to use ferrer() since fgets() returns NULL also at a premature EOF. Thanks,

Re: [HACKERS] initdb: Improve error recovery.

2014-12-02 Thread Robert Haas
On Thu, Nov 27, 2014 at 7:28 AM, Mats Erik Andersson wrote: > I would like to improve error recovery of initdb when the > password file is empty. The present code declares "Error 0" > as the cause of failure. It suffices to use ferrer() since > fgets() returns NULL also at a premature EOF. > > In