Re: Get a list of databases? - Mailing list pgsql-novice

From joseph speigle
Subject Re: Get a list of databases?
Date
Msg-id 20070227061255.GA8720@www.sirfsup.com
Whole thread Raw
In response to Get a list of databases?  ("Neil Aggarwal" <neil@JAMMConsulting.com>)
Responses Re: Get a list of databases?
List pgsql-novice
>
> My code needs to be able to allow the user to select which
> database to connect to.
>
> Is there a programmatic way to get a list of the databases
> managed by a pgsql server?
you mean like 'psql >\l' ?
try
select datname from pg_database;
--
joe speigle
www.sirfsup.com

pgsql-novice by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Get a list of databases?
Next
From: Kevin Hunter
Date:
Subject: Re: Get a list of databases?