From: | Craig Ringer <ringerc(at)ringerc(dot)id(dot)au> |
---|---|
To: | "Can not create DB by 'createdb(dot)exe' when DB 'postgres' is droped" <yanghui328(at)gmail(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #6252: After drop the default database 'postgres', I can not create a database by 'createdb.exe' |
Date: | 2011-10-13 02:55:07 |
Message-ID: | 4E96530B.7060507@ringerc.id.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
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(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Kyotaro HORIGUCHI | 2011-10-13 03:45:31 | Re: [v9.2] make_greater_string() does not return a string in some cases |
Previous Message | Craig Ringer | 2011-10-13 02:51:34 | Re: BUG #6246: character encoding for 64 bit |