pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira <euler@timbira.com.br>
To: francois@teksol.info
To: 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 12:10:36 -0300
Message-ID: <de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br> (raw)
In-Reply-To: <20170304145144.25052.11799@wrigleys.postgresql.org>
References: <20170304145144.25052.11799@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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


-- 
   Euler Taveira                   Timbira - http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br>
Permalink:  ../de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br/
Also on:    postgresql.org/message-id/de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br

 · 

reply

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: 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: <de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br>
  References: <20170304145144.25052.11799@wrigleys.postgresql.org> <de2f17fd-9a4f-064f-3587-204fead887f6@timbira.com.br>

* 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