Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 18F701337D6F for ; Sat, 6 Nov 2010 22:05:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 50307-01-9 for ; Sun, 7 Nov 2010 01:05:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 31B6B1337DC8 for ; Sat, 6 Nov 2010 22:02:44 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oA712fci012765; Sat, 6 Nov 2010 21:02:41 -0400 (EDT) To: Kris Jurka cc: Thomas Kellerer , pgsql-jdbc@postgresql.org Subject: Re: Bug with DatabaseMetaData and temporary tables/schemas In-reply-to: References: Comments: In-reply-to Kris Jurka message dated "Sat, 06 Nov 2010 19:52:44 -0400" Date: Sat, 06 Nov 2010 21:02:41 -0400 Message-ID: <12764.1289091761@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/9 X-Sequence-Number: 21130 Kris Jurka writes: > It looks like psql will show you your own temp schema and all of the > temp toast schemas. So that could potentially be improved as well. Yeah, there was some discussion of that just recently: http://archives.postgresql.org/message-id/16710.1284837096@sss.pgh.pa.us I haven't got round to making that change yet, but maybe now is a good time. The consensus seemed to be that \dn (without S) should not show any pg_XXX schemas, nor information_schema. Not sure that that's appropriate for getSchemas though --- an API intended for programs should maybe just hide the temp and toast schemas. regards, tom lane