Re: [INTERFACES] Creating a database with JDBC

From: "Cary B(dot) O'Brien" <cobrien(at)access(dot)digex(dot)net>
To: rheller(at)prime(dot)cs(dot)ohiou(dot)edu (Richard Heller)
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Creating a database with JDBC
Date: 1998-09-28 19:17:08
Message-ID: 199809281917.PAA26543@access5.digex.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Constantin Teodorescu 1998-09-29 08:42:51 Re: [INTERFACES] Problem deleting a record in the tableviewer
Previous Message Peter T Mount 1998-09-28 18:21:34 Re: [INTERFACES] JDBC Connection refused