Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id 245FA9F931E for ; Mon, 20 Nov 2006 02:01:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.60]) (amavisd-new, port 10024) with ESMTP id 48049-07 for ; Mon, 20 Nov 2006 02:01:29 -0400 (AST) X-Greylist: delayed 00:07:06.054943 by SQLgrey- Received: from hogranch.com (hogranch.com [66.117.128.240]) by postgresql.org (Postfix) with ESMTP id 287FA9FB27E for ; Mon, 20 Nov 2006 01:15:17 -0400 (AST) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id kAK57it15167; Sun, 19 Nov 2006 21:07:44 -0800 Message-ID: <45613820.6080909@hogranch.com> Date: Sun, 19 Nov 2006 21:07:44 -0800 From: John R Pierce User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Charlie Kelly CC: pgsql-jdbc@postgresql.org Subject: Re: Use Driver to Create database? References: <1163715629.8932.22.camel@mokki.local> <4560B46C.50109@CharlieKelly.com> <4560CFAF.7020105@gmx.net> <4560D4DA.7090708@enterprisedb.com> In-Reply-To: <4560D4DA.7090708@enterprisedb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/95 X-Sequence-Number: 16137 >> First connect to the postgres or template1 schema of the cluster, that >> you created with initdb. Execute the "CREATE DATABASE". Reconnect to the >> database you created. > > You don't want to connect to template1, though, if the program is > going to be used concurrently by more than one use. Template1 is used > as template (hence the name) to make the new database, and it will > throw an error if there's any other users connected to it beside the > one issuing the CREATE DATABASE command. > indeed. In fact you can connect to ANY existing database prior to issusing the CREATE DATABASE command. It is important, however, that you be logged on with credentials that have the CREATEDB privilege