Re: test the existence of a database

From: Erle Czar Mantos <erle(at)hindang(dot)msuiit(dot)edu(dot)ph>
To: D'laila Pereira <dpereira(at)students(dot)uiuc(dot)edu>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: test the existence of a database
Date: 2002-02-26 08:20:52
Message-ID: Pine.LNX.4.33L2.0202261614510.1435-100000@hindang.msuiit.edu.ph
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,

I do not see wat u r trying to mean? Do you want to test the
existence of a database from your code or from the standard shell?
If you want to test from your code, you can try connecting to
that database and if your connection is null, that means there
might be no database present.

Erle

>
> After a database is created in postgresql using the createdb command,
> and populate it with some taqbles, how do we test the existence of the
> database and the tables within it?
>
> thanks
> d'laila
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jerome Alet 2002-02-26 08:40:50 Re: test the existence of a database
Previous Message Martijn van Oosterhout 2002-02-26 08:17:04 Re: transaction abortion