From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Grzegorz Szpetkowski <gszpetkowski@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Re: [BUGS] BUG #5957: createdb with description and md5 auth forces to provide password twice
Date: Thu, 05 May 2011 17:34:04 -0400
Message-ID: <10307.1304631244@sss.pgh.pa.us> (raw)
In-Reply-To: <201105052108.p45L82w27520@momjian.us>
References: <201105052108.p45L82w27520@momjian.us>
Bruce Momjian <bruce@momjian.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, gszpetkowski@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #5957: createdb with description and md5 auth forces to provide password twice
In-Reply-To: <10307.1304631244@sss.pgh.pa.us>
References: <201105052108.p45L82w27520@momjian.us> <10307.1304631244@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox