From: Franco Bruno Borghesi <franco@akyasociados.com.ar>
To: Steven Bell <sfbell@keasdesign.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Listing Database
Date: Fri, 02 Jul 2004 15:50:17 -0300
Message-ID: <1088794217.2386.1.camel@taz.oficina> (raw)
In-Reply-To: <40E5A7B5.6060707@keasdesign.net>
References: <40E5A7B5.6060707@keasdesign.net>
what if you just execute the query "select datname from pg_database" in
a Statement and iterate the ResultSet?
On Fri, 2004-07-02 at 15:21, Steven Bell wrote:
> Hello,
>
> I am starting out with the PostgreSQL JDBC and I was wondering how to
> get a list of the databases. I know from the psql command line, \l will
> do it. But how about within a Java app?
>
> Thanks,
> Steve.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
Attachments:
signature.asc (application/pgp-signature, 186B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: franco@akyasociados.com.ar, sfbell@keasdesign.net
Subject: Re: Listing Database
In-Reply-To: <1088794217.2386.1.camel@taz.oficina>
References: <40E5A7B5.6060707@keasdesign.net> <1088794217.2386.1.camel@taz.oficina>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox