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 3BB6FDBCFB for ; Fri, 25 Nov 2005 13:58:34 -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 44255-09 for ; Fri, 25 Nov 2005 17:58:32 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 239B8DAFA5 for ; Fri, 25 Nov 2005 13:58:29 -0400 (AST) Received: (qmail 17959 invoked from network); 25 Nov 2005 17:58:29 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 25 Nov 2005 17:58:29 -0000 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <72441723-6002-42DB-B8A9-CEDF16801F4E@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: getTables() not working for information_schema or pg_catalog Date: Fri, 25 Nov 2005 12:58:25 -0500 To: Thomas Kellerer X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.007 required=5 tests=[AWL=0.007] X-Spam-Score: 0.007 X-Spam-Level: X-Archive-Number: 200511/206 X-Sequence-Number: 14304 IIRC these two tables are excluded on purpose to avoid returning those tables. The purpose of getTables is to get the tables associated with the connection, not to get system tables. Dave On 25-Nov-05, at 11:34 AM, Thomas Kellerer wrote: > 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 > > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >