Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5DC741337BC3 for ; Wed, 22 Dec 2010 13:01:28 -0400 (AST) 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 12153-06-5 for ; Wed, 22 Dec 2010 17:01:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id A9F6B1337BD7 for ; Wed, 22 Dec 2010 13:01:20 -0400 (AST) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 4B52A28432; Wed, 22 Dec 2010 12:01:19 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=djs1AY+uW3TSOzKJUnOnaUCJ4aM=; b=oF9Z7i NGtdJ/tk63sU15pXZflQeozNLDUbiV93SPfzIEELFAMsE/GjAttQ+wZSFpzH+2tw xiIYdaTkcRUHSl4ebS2dsjtCjHREhPj2rEYhhTh2BIcBevq6vJAJivYYEOsNt9kt Z6OmP+aRpjA26hxQ70K7LzCiuy11iNLg+V/nk= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 2263B2842E; Wed, 22 Dec 2010 12:01:19 -0500 (EST) Received: by leary.csoft.net (Postfix, from userid 1112) id D255FAB11; Wed, 22 Dec 2010 12:01:18 -0500 (EST) Date: Wed, 22 Dec 2010 12:01:18 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Thomas Kellerer cc: pgsql-jdbc@postgresql.org Subject: Re: Bug with DatabaseMetaData and temporary tables/schemas In-Reply-To: Message-ID: References: <12764.1289091761@sss.pgh.pa.us> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: 201012/62 X-Sequence-Number: 21300 On Sun, 7 Nov 2010, Thomas Kellerer wrote: > Tom Lane wrote on 07.11.2010 02:02: >> 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. >> > > Well it should at least show "my" temp schemas. I've applied a patch to fix this. The driver will now show your own temp schema and toast temp schema, but no other temp schemas (toast or otherwise). > Or getColumns() and getTables() should be smart enough to return information > about temp tables without having to specify the temp schema. I'm not sure what you are referring to here. You can certainly leave the schema blank and it should work. Kris Jurka