Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 13C651337B7E for ; Fri, 14 Jan 2011 07:12:26 -0400 (AST) 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 87909-03 for ; Fri, 14 Jan 2011 11:12:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og126.obsmtp.com (exprod7og126.obsmtp.com [64.18.2.206]) by mail.postgresql.org (Postfix) with SMTP id 272221337B43 for ; Fri, 14 Jan 2011 07:12:17 -0400 (AST) Received: from source ([209.85.215.43]) by exprod7ob126.postini.com ([64.18.6.12]) with SMTP ID DSNKTTAvkReDjsINWKyC7YwHVp1qui46WRmz@postini.com; Fri, 14 Jan 2011 03:12:19 PST Received: by ewy22 with SMTP id 22so1322643ewy.16 for ; Fri, 14 Jan 2011 03:12:16 -0800 (PST) Received: by 10.213.28.69 with SMTP id l5mr683633ebc.13.1295003536416; Fri, 14 Jan 2011 03:12:16 -0800 (PST) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id u1sm856221eeh.16.2011.01.14.03.12.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 14 Jan 2011 03:12:15 -0800 (PST) Message-ID: <4D302F8C.3010800@enterprisedb.com> Date: Fri, 14 Jan 2011 13:12:12 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 MIME-Version: 1.0 To: Tyler Kellen CC: pgsql-bugs@postgresql.org Subject: Re: BUG #5838: tables of the same name in different schemas References: <201101140807.p0E87PFN053886@wwwmaster.postgresql.org> In-Reply-To: <201101140807.p0E87PFN053886@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.2 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3 X-Spam-Level: X-Archive-Number: 201101/102 X-Sequence-Number: 29124 On 14.01.2011 10:07, Tyler Kellen wrote: > Given two objects of the same name in different schemas, when both schemas > are in the search_path, \d only shows the object from the first schema > listed. > > Reproduction: > CREATE SCHEMA s1; > CREATE SCHEMA s2; > CREATE TABLE s1.test ( id int ); > CREATE TABLE s2.test ( id int ); > SET search_path TO s1,s2; > \d > SET search_path TO s2,s1; > \d That's intentional. \d lists the object that are currently visible in your search_path. The object in the schema that's later in search_path is being shadowed by the one in the first schema, so it's not visible. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com