From: Craig Ringer <ringerc@ringerc.id.au>
To: Can not create DB by 'createdb.exe' when DB 'postgres' is droped <yanghui328@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6252: After drop the default database 'postgres', I can not create a database by 'createdb.exe'
Date: Thu, 13 Oct 2011 10:55:07 +0800
Message-ID: <4E96530B.7060507@ringerc.id.au> (raw)
In-Reply-To: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org>
References: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org>
On 10/12/2011 02:48 PM, Can not create DB by 'createdb.exe' when DB
'postgres' is droped wrote:
>
> 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
Yep. You need to use a `CREATE DATABASE' command from psql to re-create
the `postgres' database after connecting to the "template1" database, eg:
template1=> CREATE DATABASE postgres WITH OWNER postgres;
--
Craig Ringer
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: ringerc@ringerc.id.au, 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: <4E96530B.7060507@ringerc.id.au>
References: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org> <4E96530B.7060507@ringerc.id.au>
* 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