Re: [BUGS] BUG #14578: Tables with same name in different schema are not shown with \dt - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] BUG #14578: Tables with same name in different schema are not shown with \dt
Date
Msg-id 20300.1488640664@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] BUG #14578: Tables with same name in different schema arenot shown with \dt  (Euler Taveira <euler@timbira.com.br>)
List pgsql-bugs
Euler Taveira <euler@timbira.com.br> 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

pgsql-bugs by date:

Previous
From: Euler Taveira
Date:
Subject: Re: [BUGS] BUG #14578: Tables with same name in different schema arenot shown with \dt
Next
From: Fabien COELHO
Date:
Subject: Re: [BUGS] BUG #14578: Tables with same name in different schemaare not shown with \dt