initdb check_need_password fix - Mailing list pgsql-hackers

From Peter Eisentraut
Subject initdb check_need_password fix
Date
Msg-id 1340912891.488.0.camel@vanquo.pezone.net
Whole thread Raw
Responses Re: initdb check_need_password fix
List pgsql-hackers
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.



Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: embedded list v2
Next
From: Alvaro Herrera
Date:
Subject: Re: We probably need autovacuum_max_wraparound_workers