Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckBRS-0006L0-31 for pgsql-bugs@arkaria.postgresql.org; Sat, 04 Mar 2017 15:17:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ckBRR-0008Tv-M5 for pgsql-bugs@arkaria.postgresql.org; Sat, 04 Mar 2017 15:17:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ckBRR-0008SR-1O for pgsql-bugs@postgresql.org; Sat, 04 Mar 2017 15:17:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ckBRK-0003F4-DK for pgsql-bugs@postgresql.org; Sat, 04 Mar 2017 15:17:52 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v24FHiLi030696; Sat, 4 Mar 2017 10:17:44 -0500 From: Tom Lane To: Euler Taveira cc: francois@teksol.info, pgsql-bugs@postgresql.org Subject: Re: BUG #14578: Tables with same name in different schema are not shown with \dt In-reply-to: References: <20170304145144.25052.11799@wrigleys.postgresql.org> Comments: In-reply-to Euler Taveira message dated "Sat, 04 Mar 2017 12:10:36 -0300" Date: Sat, 04 Mar 2017 10:17:44 -0500 Message-ID: <20300.1488640664@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Euler Taveira writes: > 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]. Indeed. See the last discussion of this, https://www.postgresql.org/message-id/flat/20170208113300.1411.83851%40wrigleys.postgresql.org An approximation to what you want can be had with "\dt *.tablename" or perhaps "\dt *.*". regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs