<yanghui...@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

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
  • [BUGS] BU... Can not create DB by 'createdb.exe' when DB 'postgres' is droped
    • Re: ... Kevin Grittner
      • ... John R Pierce
    • Re: ... Craig Ringer

Reply via email to