From: Michael Wood <esiotrot@gmail.com>
To: Richard Broersma <richard.broersma@gmail.com>
Cc: Christopher Frank <c.frank@gmail.com>
Cc: pgsql-novice@postgresql.org
Cc: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: [NOVICE] Bug - DatabaseMetaData.getCatalogs() was [Novice] Can't get list of databases with \list
Date: Tue, 3 Nov 2009 20:29:08 +0200
Message-ID: <5a8aa6680911031029q1d8e592fj90f47f1b25e62bf8@mail.gmail.com> (raw)
In-Reply-To: <396486430911030936r725f6163m3384fad30721b36c@mail.gmail.com>
References: <396486430911030936r725f6163m3384fad30721b36c@mail.gmail.com>
2009/11/3 Richard Broersma <richard.broersma@gmail.com>:
> On Mon, Nov 2, 2009 at 1:05 PM, Christopher Frank <c.frank@gmail.com> wrote:
>
>>> > As for JDBC, there may be something that gives equivalent information,
>>> > but I
>>> > couldn't find it.
>>>
>>> http://java.sun.com/javase/6/docs/api/java/sql/DatabaseMetaData.html
>>>
>>> getCatalogs()
>
>> I had tried that but it only returned one database, the database to which I
>> was already connected. There should have been 3 others.
>
> I verified that the DatabaseMetaData.getCatalogs() only returns a
> ResultSet with the currently connect database rather than all of the
> databases in the PostgreSQL cluster.
What does it do when you have multiple schemas (schemata?) in the database?
--
Michael Wood <esiotrot@gmail.com>
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: esiotrot@gmail.com, richard.broersma@gmail.com, c.frank@gmail.com, pgsql-novice@postgresql.org
Subject: Re: [NOVICE] Bug - DatabaseMetaData.getCatalogs() was [Novice] Can't get list of databases with \list
In-Reply-To: <5a8aa6680911031029q1d8e592fj90f47f1b25e62bf8@mail.gmail.com>
References: <396486430911030936r725f6163m3384fad30721b36c@mail.gmail.com> <5a8aa6680911031029q1d8e592fj90f47f1b25e62bf8@mail.gmail.com>
* 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