Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbUjs-0005Yj-13 for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Feb 2017 16:05:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cbUjr-00031d-6D for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Feb 2017 16:04:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbUjq-00031M-IV for pgsql-bugs@postgresql.org; Wed, 08 Feb 2017 16:04:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbUjn-0007ul-D3 for pgsql-bugs@postgresql.org; Wed, 08 Feb 2017 16:04:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v18G4sB4001927; Wed, 8 Feb 2017 11:04:54 -0500 From: Tom Lane To: "David G. Johnston" cc: totocrenn@gmail.com, "pgsql-bugs@postgresql.org" Subject: Re: BUG #14535: SET search_path and list tables In-reply-to: References: <20170208113300.1411.83851@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Wed, 08 Feb 2017 08:03:33 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1925.1486569894.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 08 Feb 2017 11:04:54 -0500 Message-ID: <1926.1486569894@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "David G. Johnston" writes: > On Wed, Feb 8, 2017 at 4:33 AM, 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.tab= le >> and demo.table, but I only see test.table. > =E2=80=8BIt is a choice - \dt, without a object schema specified, will sh= ow you the > single object that would be chosen if you have written a query =E2=80=8Bi= n 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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs