Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D3F221337B92 for ; Wed, 23 Mar 2011 20:02:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 69288-03 for ; Wed, 23 Mar 2011 23:02:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id E69481337B8B for ; Wed, 23 Mar 2011 20:01:59 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p2NN1x9d067901 for ; Wed, 23 Mar 2011 23:01:59 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p2NN1xhO067900; Wed, 23 Mar 2011 23:01:59 GMT (envelope-from www) Date: Wed, 23 Mar 2011 23:01:59 GMT Message-Id: <201103232301.p2NN1xhO067900@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5943: jdbc client doesn't omit pg_toast_temp tables from schema views From: "Daniel Ceregatti" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201103/306 X-Sequence-Number: 29816 The following bug has been logged online: Bug reference: 5943 Logged by: Daniel Ceregatti Email address: daniel@ceregatti.org PostgreSQL version: N/A Operating system: N/A Description: jdbc client doesn't omit pg_toast_temp tables from schema views Details: In the file org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java is the query: sql = "SELECT nspname AS TABLE_SCHEM FROM pg_catalog.pg_namespace WHERE nspname <> 'pg_toast' AND nspname !~ '^pg_temp_' ORDER BY TABLE_SCHEM"; Using Data Tools Platform in eclipse I was able to see all the pg_toast_temp_XXX schemas in the schema view. Using postgresql-9.0-801.jdbc4.jar Please note that RhodiumToad in #postgresql on irc.freenode.org actually discovered this based on a conversation he, ojacobson, and I had, and I'm simply reporting what he discovered. Thanks, Daniel