From: John R Pierce <pierce@hogranch.com>
To: Charlie Kelly <Charlie@CharlieKelly.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Use Driver to Create database?
Date: Sun, 19 Nov 2006 21:07:44 -0800
Message-ID: <45613820.6080909@hogranch.com> (raw)
In-Reply-To: <4560D4DA.7090708@enterprisedb.com>
References: <1163715629.8932.22.camel@mokki.local>
<4560B46C.50109@CharlieKelly.com>
<4560CFAF.7020105@gmx.net>
<4560D4DA.7090708@enterprisedb.com>
>> 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
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-jdbc@postgresql.org
Cc: pierce@hogranch.com, Charlie@CharlieKelly.com
Subject: Re: Use Driver to Create database?
In-Reply-To: <45613820.6080909@hogranch.com>
References: <1163715629.8932.22.camel@mokki.local> <4560B46C.50109@CharlieKelly.com> <4560CFAF.7020105@gmx.net> <4560D4DA.7090708@enterprisedb.com> <45613820.6080909@hogranch.com>
* 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