X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B01BCDBDD0 for ; Fri, 25 Nov 2005 12:38:32 -0400 (AST) 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 37484-04 for ; Fri, 25 Nov 2005 16:38:29 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8CBB0DBDA0 for ; Fri, 25 Nov 2005 12:38:28 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EfgYO-0003ZM-Rx for pgsql-jdbc@postgresql.org; Fri, 25 Nov 2005 17:36:04 +0100 Received: from ppp-82-135-70-91.mnet-online.de ([82.135.70.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Nov 2005 17:36:04 +0100 Received: from spam_eater by ppp-82-135-70-91.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Nov 2005 17:36:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: getTables() not working for information_schema or pg_catalog Date: Fri, 25 Nov 2005 17:34:31 +0100 Lines: 25 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ppp-82-135-70-91.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.6) Gecko/20050317 Thunderbird/1.0.2 Mnenhy/0.7.2.0 X-Accept-Language: de-DE, de, en-us, en 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/205 X-Sequence-Number: 14303 Hello, I just stumbled across something: When I call con.getMetaData().getTables(null, "information_schema", "%", null); (where con is a java.sql.Connection), I would assume to get all tables that are stored in the information_schema, but the returned ResultSet is empty (next() immediately returns false). The same is true when I call it with "pg_catalog" Passing null for the table name does not make a difference. getTables(null, "public", "%", null) is working fine. Am I missing something, or is this broken? I am using postgresql-8.1-404.jdbc3.jar and PG 8.1 on a Windows 2000 box (with JDK 1.5) Regards Thomas