Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4C616B5DBCA for ; Wed, 12 Oct 2011 03:48:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 06063-05 for ; Wed, 12 Oct 2011 06:48:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 93E68B5DBC4 for ; Wed, 12 Oct 2011 03:48:42 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p9C6mfaP002306 for ; Wed, 12 Oct 2011 06:48:41 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p9C6mfGf002304; Wed, 12 Oct 2011 06:48:41 GMT (envelope-from www) Date: Wed, 12 Oct 2011 06:48:41 GMT Message-Id: <201110120648.p9C6mfGf002304@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6252: After drop the default database 'postgres', I can not create a database by 'createdb.exe' From: "Can not create DB by 'createdb.exe' when DB 'postgres' is droped" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201110/99 X-Sequence-Number: 31369 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 PS:file: '\postgresql-9.0.5\src\bin\scripts\createdb.c' Line: 195 Source: conn = connectDatabase(strcmp(dbname, "postgres") == 0 ? "template1" : "postgres", host, port, username, prompt_password, progname); *Sorry for my poor English