Re: Get a list of databases?

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Get a list of databases?
Date: 2007-02-27 06:10:43
Message-ID: 20070227061043.GA14945@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

am Mon, dem 26.02.2007, um 22:52:57 -0600 mailte Neil Aggarwal folgendes:
> Hello:
>
> 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 can use the output from following command:

psql -l

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message joseph speigle 2007-02-27 06:12:55 Re: Get a list of databases?
Previous Message Neil Aggarwal 2007-02-27 04:52:57 Get a list of databases?