From: Can not create DB by 'createdb.exe' when DB 'postgres' is droped <yanghui328@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6252: After drop the default database 'postgres', I can not create a database by 'createdb.exe'
Date: Wed, 12 Oct 2011 06:48:41 GMT
Message-ID: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 6252
Logged by: Can not create DB by 'createdb.exe' when DB 'postgres'
is droped
Email address: yanghui328@gmail.com
PostgreSQL version: 9.0.5
Operating system: Windows XP SP2
Description: After drop the default database 'postgres', I can not
create a database by 'createdb.exe'
Details:
1.drop database 'postgres'
2.create a database by createdb.exe
the follow error message will dispaly:
Can not create DB by 'createdb.exe' when database 'postgres' is droped
PS:file: '\postgresql-9.0.5\src\bin\scripts\createdb.c'
Line: 195
Source: conn = connectDatabase(strcmp(dbname, "postgres") == 0 ?
"template1" : "postgres", host, port, username, prompt_password, progname);
*Sorry for my poor English
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: yanghui328@gmail.com
Subject: Re: BUG #6252: After drop the default database 'postgres', I can not create a database by 'createdb.exe'
In-Reply-To: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org>
References: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org>
* 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