From: François Beausoleil <francois@teksol.info>
To: Euler Taveira <euler@timbira.com.br>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14578: Tables with same name in different schema are not shown with \dt
Date: Sat, 4 Mar 2017 11:33:17 -0500
Message-ID: <86134228-E342-4838-B65D-82E3F987E2AB@teksol.info> (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>
> Le 4 mars 2017 à 10:10, Euler Taveira <euler@timbira.com.br> a écrit :
>
> 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
Oh, OK. That was surprising. I don't usually have tables with the same name in different schemas.
Thanks for the quick replies!
François
--
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: francois@teksol.info, euler@timbira.com.br
Subject: Re: BUG #14578: Tables with same name in different schema are not shown with \dt
In-Reply-To: <86134228-E342-4838-B65D-82E3F987E2AB@teksol.info>
References: <20170304145144.25052.11799@wrigleys.postgresql.org> <de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br> <86134228-E342-4838-B65D-82E3F987E2AB@teksol.info>
* 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