From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: totocrenn@gmail.com, "pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14535: SET search_path and list tables
Date: Wed, 08 Feb 2017 11:04:54 -0500
Message-ID: <1926.1486569894@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwZ-raZ9Ks9qjiwYhEVVU2OvJDV8qeswfA10DimTTTKPyg@mail.gmail.com>
References: <20170208113300.1411.83851@wrigleys.postgresql.org>
<CAKFQuwZ-raZ9Ks9qjiwYhEVVU2OvJDV8qeswfA10DimTTTKPyg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Wed, Feb 8, 2017 at 4:33 AM, <totocrenn@gmail.com> wrote:
>> I have 2 SCHEMAS : test and demo
>> Each schemas have the same TABLE : table
>> So when I list all the tables with \dt I should have 2 tables : test.table
>> and demo.table, but I only see test.table.
> It is a choice - \dt, without a object schema specified, will show you the
> single object that would be chosen if you have written a query in a
> similar fashion:
> i.e., SELECT * FROM table;
If you want to see all occurrences of the table name, you can write
something like "\dt *.table". But without any schema component in the
pattern, psql's \d commands will only show objects that are visible in
the search path --- which means "they could be referenced by unqualified
names", not "their schema is in the search path someplace".
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, david.g.johnston@gmail.com
Subject: Re: BUG #14535: SET search_path and list tables
In-Reply-To: <1926.1486569894@sss.pgh.pa.us>
References: <20170208113300.1411.83851@wrigleys.postgresql.org> <CAKFQuwZ-raZ9Ks9qjiwYhEVVU2OvJDV8qeswfA10DimTTTKPyg@mail.gmail.com> <1926.1486569894@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