Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckBKY-000669-TY for pgsql-bugs@arkaria.postgresql.org; Sat, 04 Mar 2017 15:10:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ckBKY-0006v8-FA for pgsql-bugs@arkaria.postgresql.org; Sat, 04 Mar 2017 15:10:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ckBKX-0006ug-QZ for pgsql-bugs@postgresql.org; Sat, 04 Mar 2017 15:10:45 +0000 Received: from [2600:3c02::f03c:91ff:fe70:c491] (helo=apinaye.timbira.com.br) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckBKU-0000fd-RG for pgsql-bugs@postgresql.org; Sat, 04 Mar 2017 15:10:44 +0000 Received: by apinaye.timbira.com.br (Postfix, from userid 110) id B28A511A58; Sat, 4 Mar 2017 12:10:41 -0300 (BRT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on apinaye X-Spam-Level: X-Spam-Status: No, score=-100.2 required=4.5 tests=ALL_TRUSTED,BAYES_00, DNS_FROM_AHBL_RHSBL,URIBL_BLOCKED,USER_IN_WHITELIST autolearn=no version=3.3.1 Received: from [10.3.2.20] (unknown [179.105.174.177]) by apinaye.timbira.com.br (Postfix) with ESMTPSA id 89A9F11A52; Sat, 4 Mar 2017 12:10:39 -0300 (BRT) Subject: Re: BUG #14578: Tables with same name in different schema are not shown with \dt To: francois@teksol.info, pgsql-bugs@postgresql.org References: <20170304145144.25052.11799@wrigleys.postgresql.org> From: Euler Taveira Organization: Timbira Message-ID: Date: Sat, 4 Mar 2017 12:10:36 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170304145144.25052.11799@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2600:3c02::f03c:91ff:fe70:c491 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 04-03-2017 11:51, francois@teksol.info wrote: > In my schema, I happen to have two tables in different schemas with the same > name. PG supports that no problem, but when I listed the tables using \dt > and the search path set to both schemas, I expected to see the two tables. > Sadly, that wasn't the case. > It is not a bug. It is a documented behavior [1]. "An object is said to be visible if its containing schema is in the search path and no object of the same kind and name appears earlier in the search path." [1] https://www.postgresql.org/docs/9.6/static/app-psql.html -- Euler Taveira Timbira - http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs