> > 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