Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C1B3F1337BA3 for ; Thu, 5 May 2011 18:34:24 -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 27284-04 for ; Thu, 5 May 2011 21:34:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id CC0801337B97 for ; Thu, 5 May 2011 18:34:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p45LY4DM010308; Thu, 5 May 2011 17:34:04 -0400 (EDT) To: Bruce Momjian cc: Grzegorz Szpetkowski , PostgreSQL-development Subject: Re: Re: [BUGS] BUG #5957: createdb with description and md5 auth forces to provide password twice In-reply-to: <201105052108.p45L82w27520@momjian.us> References: <201105052108.p45L82w27520@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 05 May 2011 17:08:02 -0400" Date: Thu, 05 May 2011 17:34:04 -0400 Message-ID: <10307.1304631244@sss.pgh.pa.us> From: Tom Lane 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/225 X-Sequence-Number: 187259 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. Seems like it wouldn't be that hard to test the server version and only reconnect if it's pre-8.2. regards, tom lane