initdb: Improve error recovery.

Поиск
Список
Период
Сортировка
От Mats Erik Andersson
Тема initdb: Improve error recovery.
Дата
Msg-id 20141127122838.GB15163@mail.gisladisker.se
обсуждение исходный текст
Ответы Re: initdb: Improve error recovery.  (Robert Haas <robertmhaas@gmail.com>)
Re: initdb: Improve error recovery.  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список 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 по дате отправления:

Предыдущее
От: Alex Shulgin
Дата:
Сообщение: Re: [PATCH] add ssl_protocols configuration option
Следующее
От: Mats Erik Andersson
Дата:
Сообщение: pg_isready: Missing translation macros.