From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: yanghui328@gmail.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6252: After drop the default database 'postgres', I can not create a database by 'createdb.exe'
Date: Wed, 12 Oct 2011 11:28:06 -0500
Message-ID: <4E9579C60200002500041EB9@gw.wicourts.gov> (raw)
In-Reply-To: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org>
References: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org>
<yanghui328@gmail.com> wrote:
> 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
To create a database, the createdb executable has to connect to the
cluster. A connection is always to some specific database. The
postgres database was added specifically so that such utilities
could make a connection somewhere so they could do their work. If
you drop it, you break those applications.
This is not a bug. The workaround is to not drop the database which
is automatically created on installation.
-Kevin
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: Kevin.Grittner@wicourts.gov, 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: <4E9579C60200002500041EB9@gw.wicourts.gov>
References: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org> <4E9579C60200002500041EB9@gw.wicourts.gov>
* 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