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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] BUG #14578: Tables with same name in different schema are not shown with \dt
Дата
Msg-id 20300.1488640664@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #14578: Tables with same name in different schema arenot shown with \dt  (Euler Taveira <euler@timbira.com.br>)
Список 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 по дате отправления:

Предыдущее
От: Euler Taveira
Дата:
Сообщение: Re: [BUGS] BUG #14578: Tables with same name in different schema arenot shown with \dt
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: [BUGS] BUG #14578: Tables with same name in different schemaare not shown with \dt