initdb check_need_password fix

Поиск
Список
Период
Сортировка
Искать

initdb check_need_password fix

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
Вложения:
If you run initdb -A md5, you get an error

initdb: must specify a password for the superuser to enable md5 authentication

In 9.2, when you run something like initdb --auth-local=peer
--auth-host=md5, you still get that error, which I think is a mistake.
The error should only be shown if both authentication choices are
password-like.  Hence I propose the attached patch.


Re: initdb check_need_password fix

От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Thu, Jun 28, 2012 at 3:48 PM, Peter Eisentraut  wrote:
> If you run initdb -A md5, you get an error
>
> initdb: must specify a password for the superuser to enable md5 authentication
>
> In 9.2, when you run something like initdb --auth-local=peer
> --auth-host=md5, you still get that error, which I think is a mistake.
> The error should only be shown if both authentication choices are
> password-like.  Hence I propose the attached patch.

Looks right to me.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

FAQ