From: Tom Lane <tgl@sss.pgh.pa.us>
To: Euler Taveira <euler@timbira.com.br>
Cc: francois@teksol.info
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14578: Tables with same name in different schema are not shown with \dt
Date: Sat, 04 Mar 2017 10:17:44 -0500
Message-ID: <20300.1488640664@sss.pgh.pa.us> (raw)
In-Reply-To: <de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br>
References: <20170304145144.25052.11799@wrigleys.postgresql.org>
<de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, euler@timbira.com.br, francois@teksol.info
Subject: Re: BUG #14578: Tables with same name in different schema are not shown with \dt
In-Reply-To: <20300.1488640664@sss.pgh.pa.us>
References: <20170304145144.25052.11799@wrigleys.postgresql.org> <de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br> <20300.1488640664@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox