Thread: Writing code to list Databases ?

Writing code to list Databases ?

From
Peter Moscatt
Date:
Are there routines that allow me to list databases within PostGres ?

Pete



Re: Writing code to list Databases ?

From
Joe Conway
Date:
Peter Moscatt wrote:
> Are there routines that allow me to list databases within PostGres ?
> 
From a shell prompt, use `psql -l`. The SQL command is:  select datname from pg_database;

HTH,

Joe