pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Wojciech Strzalka <wstrzalka@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: psql doesn't show tables duplicated in multiple schemas
Date: Mon, 2 Aug 2021 12:42:08 +0200
Message-ID: <20210802104208.GA9634@depesz.com> (raw)
In-Reply-To: <CAJf-CGso9C6KJYSrj5N8eesyKR1iXiLm51aaiLHn19Ngpxsv6A@mail.gmail.com>
References: <CAJf-CGso9C6KJYSrj5N8eesyKR1iXiLm51aaiLHn19Ngpxsv6A@mail.gmail.com>

On Mon, Aug 02, 2021 at 09:05:19AM +0200, Wojciech Strzalka wrote:
> I would expect last table listing to include 'y.b' table. Although shadowed
> when referencing by 'b' it's still there.

Not really a bug. It shows you "visible" tables, that is - tables that
you can reach without specifying schema.

If you want to find all tables "b" across all schema, do:

#v+
\dt *.b
#v-

Best regards,

depesz






view thread (9+ messages)  latest in thread

Message-ID: <20210802104208.GA9634@depesz.com>
Permalink:  ../20210802104208.GA9634@depesz.com/
Also on:    postgresql.org/message-id/20210802104208.GA9634@depesz.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: depesz@depesz.com, wstrzalka@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: psql doesn't show tables duplicated in multiple schemas
  In-Reply-To: <20210802104208.GA9634@depesz.com>

* 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