Skip site navigation (1) Skip section navigation (2)

initdb check_need_password fix

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: initdb check_need_password fix
Date: 2012-06-28 19:48:11
Message-ID: 1340912891.488.0.camel@vanquo.pezone.net (view raw or flat)
Thread:
Lists: 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: pg-initdb-auth-error-fix.patch
Description: text/x-patch (1.4 KB)

Responses

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2012-06-28 19:54:42
Subject: Re: We probably need autovacuum_max_wraparound_workers
Previous:From: Alvaro HerreraDate: 2012-06-28 19:47:05
Subject: Re: embedded list v2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group