Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A92E01337B99 for ; Sat, 6 Nov 2010 20:52:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 63178-09 for ; Sat, 6 Nov 2010 23:52:47 +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 377541337B84 for ; Sat, 6 Nov 2010 20:52:46 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 717DB28405; Sat, 6 Nov 2010 19:52:45 -0400 (EDT) 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=1CsTYTYlfEy28BQ3w9Q0Lu0+8U0=; b=unQ4mD OD3g3IEVY1z4JSfJqYj7PeHId9l3d8fZv7NGZmJ1etzu1Kgsxhi/BiT6s9pj/yM/ c8qb/2vYXhGQWOA3S8fusopGqnuAD9ht/EgVdk5ZYYmiyqsvB2df7xcMlSvakOag aakK1tgq5kCN1njJwOMNFvZvD9s0Gdg1nmjbw= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 58E5F28404; Sat, 6 Nov 2010 19:52:45 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 2351AAAC8; Sat, 6 Nov 2010 19:52:45 -0400 (EDT) Date: Sat, 6 Nov 2010 19:52:44 -0400 (EDT) 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: 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: 201011/8 X-Sequence-Number: 21129 On Fri, 5 Nov 2010, Thomas Kellerer wrote: > DatabaseMetaData does not correctly report the implicitely created temporary > schema when creating a temporary table. getSchemas is trying to help by not showing you tables that you cannot access in other backends' temp schemas. It's not quite smart enough though. It's not filtering the toast schemas and it isn't allowing you to see your own temp schema. 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. I'll take a look at making getSchemas a little more consistent. Kris Jurka