Re: [INTERFACES] Creating a database with JDBC - Mailing list pgsql-interfaces

From Cary B. O'Brien
Subject Re: [INTERFACES] Creating a database with JDBC
Date
Msg-id 199809281917.PAA26543@access5.digex.net
Whole thread Raw
In response to Creating a database with JDBC  (Richard Heller <rheller@prime.cs.ohiou.edu>)
List pgsql-interfaces
> 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

pgsql-interfaces by date:

Previous
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] JDBC Connection refused
Next
From: "S.Ramaswamy"
Date:
Subject: Re: [INTERFACES] JDBC Connection refused