X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1E65F9DCD06 for ; Wed, 30 Nov 2005 03:39:05 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36589-04 for ; Wed, 30 Nov 2005 03:39:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from outmail.unitedplanet.de (guardian.unitedplanet.de [212.185.176.178]) by postgresql.org (Postfix) with ESMTP id 7C8DD9DCD05 for ; Wed, 30 Nov 2005 03:39:02 -0400 (AST) Received: from Apollo.unitedplanet.de (apollo.unitedplanet.de [10.10.12.17]) by outmail.unitedplanet.de (Postfix) with ESMTP id EDBB047CE5; Wed, 30 Nov 2005 09:12:04 +0100 (CET) Received: from [10.10.15.18] ([10.10.15.18]) by Apollo.unitedplanet.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 30 Nov 2005 08:39:03 +0100 Message-ID: <438D5716.70805@unitedplanet.de> Date: Wed, 30 Nov 2005 08:39:02 +0100 From: Martin Keller User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: Driver does not report all catalogs References: <438C2400.50900@unitedplanet.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Nov 2005 07:39:03.0107 (UTC) FILETIME=[22A9D930:01C5F581] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/230 X-Sequence-Number: 14328 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