Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EADD91337BEF for ; Thu, 5 May 2011 19:12:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 61161-04 for ; Thu, 5 May 2011 22:12:04 +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 E67791337BD8 for ; Thu, 5 May 2011 19:12:03 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p45MC4X12852; Thu, 5 May 2011 18:12:04 -0400 (EDT) From: Bruce Momjian Message-Id: <201105052212.p45MC4X12852@momjian.us> Subject: Re: Re: [BUGS] BUG #5957: createdb with description and md5 auth forces to provide password twice In-Reply-To: <10307.1304631244@sss.pgh.pa.us> To: Tom Lane Date: Thu, 5 May 2011 18:12:04 -0400 (EDT) CC: Grzegorz Szpetkowski , PostgreSQL-development 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=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/226 X-Sequence-Number: 187260 Tom Lane wrote: > Bruce Momjian writes: > > Prior to PG 8.2, this was necessary to put the comment on the database, > > but now that we have the shared comment/description table > > pg_shdescription, this is not necessary. > > > Do we need createdb to be able to create databases for pre-8.2 clusters? > > If not, the attached patch fixes the double-prompting. > > Well, if you're only going to change this in HEAD, that might be an > acceptable limitation, but if you intend to back-patch I think not. > Older versions of createdb are probably significantly more likely to > be used with even-older servers. This code has been that way since pre-8.2 so I see no need to backpatch; this is the first such complaint I have seen. > Seems like it wouldn't be that hard to test the server version and only > reconnect if it's pre-8.2. I am not excited about adding more code for this so I am thinking head-only. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +