Received: from access5.digex.net (qlVJj5dikdHoM@access5.digex.net [205.197.245.196]) by hub.org (8.8.8/8.8.8) with ESMTP id PAA02559 for ; Mon, 28 Sep 1998 15:18:07 -0400 (EDT) (envelope-from cobrien@access.digex.net) Received: (from cobrien@localhost) by access5.digex.net (8.8.4/8.8.4) id PAA26543; Mon, 28 Sep 1998 15:17:08 -0400 (EDT) From: "Cary B. O'Brien" Message-Id: <199809281917.PAA26543@access5.digex.net> Subject: Re: [INTERFACES] Creating a database with JDBC To: rheller@prime.cs.ohiou.edu (Richard Heller) Date: Mon, 28 Sep 1998 15:17:08 -0400 (EDT) Cc: pgsql-interfaces@postgreSQL.org In-Reply-To: from Richard Heller at "Sep 27, 98 01:22:14 pm" X-Mailer: ELM [version 2.4ME+ PL15 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > 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