From: Cary B. O'Brien <cobrien@access.digex.net>
To: rheller@prime.cs.ohiou.edu
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Creating a database with JDBC
Date: Mon, 28 Sep 1998 15:17:08 -0400 (EDT)
Message-ID: <199809281917.PAA26543@access5.digex.net> (raw)
In-Reply-To: <Pine.GSO.3.96.980927131912.9303F-100000@prime.cs.ohiou.edu>
> Hi,
>
> Is there any way to connect to the postgresql driver without having a
> database already in existence? I want to have a Java program that can
> check if a database already exists and create the database if it doesn't
> exist
>
You should be able to connect to template1 and select * from pg_database
to see what databases exist.
-- cary
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: cobrien@access.digex.net, rheller@prime.cs.ohiou.edu
Subject: Re: [INTERFACES] Creating a database with JDBC
In-Reply-To: <199809281917.PAA26543@access5.digex.net>
* 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