<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