Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 84815B5DC09 for ; Tue, 6 Sep 2011 14:24:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 97291-01 for ; Tue, 6 Sep 2011 17:24:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id BF064B5DBC4 for ; Tue, 6 Sep 2011 14:24:09 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p86HO8b12420; Tue, 6 Sep 2011 13:24:08 -0400 (EDT) From: Bruce Momjian Message-Id: <201109061724.p86HO8b12420@momjian.us> Subject: Re: BUG #5957: createdb with description and md5 auth forces to provide password twice In-Reply-To: <201103300120.p2U1KBNN038382@wwwmaster.postgresql.org> To: Grzegorz Szpetkowski Date: Tue, 6 Sep 2011 13:24:08 -0400 (EDT) CC: pgsql-bugs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/49 X-Sequence-Number: 31066 Grzegorz Szpetkowski wrote: > > The following bug has been logged online: > > Bug reference: 5957 > Logged by: Grzegorz Szpetkowski > Email address: gszpetkowski@gmail.com > PostgreSQL version: 9.0.3 > Operating system: Ubuntu 10.10 > Description: createdb with description and md5 auth forces to provide > password twice > Details: > > How to reproduce the problem: > > 1.Create new role with (encrypted password): > createuser -SdRP user > 2.In PostgreSQL 9.0.3 I found pg_hba.conf with local all all ident, so > change to local all all md5 > 3.Restart/Reload used cluster > 4.Execute createdb -U user mydb "My DB Description" > > Output: > > Password: > Password: > > creatdb command prompts password twice and I think it's improper behaviour > (and documentation is silent about that). FYI, this will be fixed in Postgres 9.1. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +