X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3180ED1B4CC for ; Fri, 2 Jul 2004 15:50:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09212-05 for ; Fri, 2 Jul 2004 18:50:27 +0000 (GMT) Received: from lucifer.oficina (unknown [200.68.121.201]) by svr1.postgresql.org (Postfix) with ESMTP id 6AC33D1B4C2 for ; Fri, 2 Jul 2004 15:50:21 -0300 (ADT) Received: from localhost (localhost.akyasociados.com.ar [127.0.0.1]) by lucifer.oficina (8.12.10/8.12.10) with ESMTP id i62IoLBe085972; Fri, 2 Jul 2004 15:50:21 -0300 (ART) (envelope-from franco@akyasociados.com.ar) Received: from lucifer.oficina ([127.0.0.1]) by localhost (lucifer.oficina [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 84587-04; Fri, 2 Jul 2004 15:50:20 -0300 (ART) Received: from [192.168.1.198] (taz.oficina [192.168.1.198]) (authenticated bits=0) by lucifer.oficina (8.12.10/8.12.10) with ESMTP id i62IoJHA085966; Fri, 2 Jul 2004 15:50:19 -0300 (ART) (envelope-from franco@akyasociados.com.ar) Subject: Re: Listing Database From: Franco Bruno Borghesi To: Steven Bell Cc: pgsql-jdbc@postgresql.org In-Reply-To: <40E5A7B5.6060707@keasdesign.net> References: <40E5A7B5.6060707@keasdesign.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-g56J3dRHqpaEh9Klt1iR" Organization: AK y Asociados S.R.L. Message-Id: <1088794217.2386.1.camel@taz.oficina> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 02 Jul 2004 15:50:17 -0300 X-Virus-Scanned: by amavisd-new at akyasociados.com.ar X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.6 tagged_above=0.0 required=5.0 tests=HTML_20_30, HTML_FONTCOLOR_UNSAFE, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200407/18 X-Sequence-Number: 10402 --=-g56J3dRHqpaEh9Klt1iR Content-Type: multipart/alternative; boundary="=-t77xggYV4/93SVViEFep" --=-t77xggYV4/93SVViEFep Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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, >=20 > I am starting out with the PostgreSQL JDBC and I was wondering how to=20 > get a list of the databases. I know from the psql command line, \l will= =20 > do it. But how about within a Java app? >=20 > Thanks, > Steve. >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? >=20 > http://www.postgresql.org/docs/faqs/FAQ.html >=20 --=-t77xggYV4/93SVViEFep Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable what if you just execute the query "select datname from pg_database&qu= ot; 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=20
get a list of the databases. I know from the psql command line, \l will=20
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
--=-t77xggYV4/93SVViEFep-- --=-g56J3dRHqpaEh9Klt1iR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBA5a5o21dVnhLsBV0RAs+XAJ9znX3nL/fMqfH+nUoCbVrrZJ8QJwCaAkFg 4+g5v+Lj/OQcCOCcrbmSl/0= =4Xy2 -----END PGP SIGNATURE----- --=-g56J3dRHqpaEh9Klt1iR--