Re: determining existence of database and language - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: determining existence of database and language
Date
Msg-id 48BBF18E.5060103@gmx.net
Whole thread Raw
In response to determining existence of database and language  ("Chris Sano" <csano32@gmail.com>)
List pgsql-general
Chris Sano wrote:
> I'm trying to build a SQL script that will create a database if it
> doesn't already exist. I've looked everywhere and haven't been able to
> find anything. Am I missing something? Thanks.

SELECT * FROM pg_database will tell you what databases exist.


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: SQL optimization - WHERE SomeField STARTING WITH ...
Next
From: Peter Eisentraut
Date:
Subject: Re: ERROR: relation . . . does not exist