From: Kris Jurka <books@ejurka.com>
To: Martin Keller <martin.keller@unitedplanet.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Driver does not report all catalogs
Date: Tue, 29 Nov 2005 15:12:26 -0500 (EST)
Message-ID: <Pine.BSO.4.61.0511291510030.8414@leary.csoft.net> (raw)
In-Reply-To: <438C2400.50900@unitedplanet.de>
References: <438C2400.50900@unitedplanet.de>
On Tue, 29 Nov 2005, Martin Keller wrote:
> newer versions of the PostgreSQL JDBC driver don't return all databases of
> the server when calling DatabaseMetaData.getCatalogs(...).
> Can anyone tell me, why this change was neccessary? It's incompatible to JDBC
> spec and brakes existing code.
>
This was discussed quite some time ago, starting here:
http://archives.postgresql.org/pgsql-jdbc/2004-01/msg00154.php
The core issue is that while we can return a list of catalogs, you can't
do anything with them. Connection.setCatalog does nothing. Other
metadata methods ignore the catalog filter as well. Pretending the other
catalogs don't exist makes certain applications work better, DBVisualizer
for example. What are you using it for?
Kris Jurka
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: books@ejurka.com, martin.keller@unitedplanet.de
Subject: Re: Driver does not report all catalogs
In-Reply-To: <Pine.BSO.4.61.0511291510030.8414@leary.csoft.net>
References: <438C2400.50900@unitedplanet.de> <Pine.BSO.4.61.0511291510030.8414@leary.csoft.net>
* 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