pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Keller <martin.keller@unitedplanet.de>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Driver does not report all catalogs
Date: Wed, 30 Nov 2005 08:39:02 +0100
Message-ID: <438D5716.70805@unitedplanet.de> (raw)
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>

We use this to show the list of available databases to the users. I 
know, that this list can be retrieved with a select on pg_database, but 
our application runs with various database systems and we try to avoid 
database specific code. The issues with some of the metadata methods and 
Connection.setCatalog don't affect the rest of our code, because the 
connections are dedicated to each used database.

Martin Keller

Kris Jurka wrote:

>
>
> 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





view thread (5+ messages)  latest in thread

Message-ID: <438D5716.70805@unitedplanet.de>
Permalink:  ../438D5716.70805@unitedplanet.de/
Also on:    postgresql.org/message-id/438D5716.70805@unitedplanet.de

 · 

reply

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: martin.keller@unitedplanet.de, books@ejurka.com
  Subject: Re: Driver does not report all catalogs
  In-Reply-To: <438D5716.70805@unitedplanet.de>
  References: <438C2400.50900@unitedplanet.de> <Pine.BSO.4.61.0511291510030.8414@leary.csoft.net> <438D5716.70805@unitedplanet.de>

* 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