initdb: Improve error recovery. - Mailing list pgsql-hackers

From Mats Erik Andersson
Subject initdb: Improve error recovery.
Date
Msg-id 20141127122838.GB15163@mail.gisladisker.se
Whole thread Raw
Responses Re: initdb: Improve error recovery.
Re: initdb: Improve error recovery.
List pgsql-hackers
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.

In addition, a minor case is the need of a line feed in
order to print the error message on a line of its own
seems desirable.

Best regards, Mats Erik Andersson



pgsql-hackers by date:

Previous
From: Alex Shulgin
Date:
Subject: Re: [PATCH] add ssl_protocols configuration option
Next
From: Mats Erik Andersson
Date:
Subject: pg_isready: Missing translation macros.