how to check if a database exists programatically - Mailing list pgsql-general

From surabhi.ahuja
Subject how to check if a database exists programatically
Date
Msg-id 967CFC4343BF2A4DAFACD026D33DC85118EC9F@jal.iiitb.ac.in
Whole thread Raw
Responses Re: how to check if a database exists programatically
Re: how to check if a database exists programatically
List pgsql-general
 i have to write a shell script in which i have to check if the database "abc" exists or not
 
how should i do it ? some select query
 
select * from ??? where database_name = 'abc';

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: memory leak under heavy load?
Next
From: "A. Kretschmer"
Date:
Subject: Re: how to check if a database exists programatically