Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckCdC-00018L-U3 for pgsql-bugs@arkaria.postgresql.org; Sat, 04 Mar 2017 16:34:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ckCdC-0001pi-Ap for pgsql-bugs@arkaria.postgresql.org; Sat, 04 Mar 2017 16:34:06 +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 1ckCcV-0000cm-Ad for pgsql-bugs@postgresql.org; Sat, 04 Mar 2017 16:33:23 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ckCcR-00026C-IC for pgsql-bugs@postgresql.org; Sat, 04 Mar 2017 16:33:21 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 8652C209EA; Sat, 4 Mar 2017 11:33:18 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sat, 04 Mar 2017 11:33:18 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=FNYYXNhlueJLxmy/N+LJnKkMkXg=; b=FNZRRLw6HSXtzBU3L+R7 X5OQrn6jzH1NoRtht5ku/AWSyTRqqZD99TTds4wmmlLDOgAe3cO0pJkU4fPwQ501 pWVOar8m1+1HIFPmQanRI1lhNfP9zXW1X0MRISnk9so4tSgSs6v5pBmROW4QKxUI gPphKWNHkuK+msDtUmpBxBE= X-ME-Sender: X-Sasl-enc: wqhV4BL7OkHFBXDvBiQ6djCDEydEcfUctloLVmZQGiKU 1488645198 Received: from [192.168.0.105] (modemcable158.35-160-184.mc.videotron.ca [184.160.35.158]) by mail.messagingengine.com (Postfix) with ESMTPA id 49D1D7E6C9; Sat, 4 Mar 2017 11:33:18 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: BUG #14578: Tables with same name in different schema are not shown with \dt From: =?utf-8?Q?Fran=C3=A7ois_Beausoleil?= In-Reply-To: Date: Sat, 4 Mar 2017 11:33:17 -0500 Cc: pgsql-bugs@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <86134228-E342-4838-B65D-82E3F987E2AB@teksol.info> References: <20170304145144.25052.11799@wrigleys.postgresql.org> To: Euler Taveira X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -2.6 (--) 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 > Le 4 mars 2017 =C3=A0 10:10, Euler Taveira a =C3= =A9crit : >=20 > 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 table= s. >> Sadly, that wasn't the case. >>=20 > It is not a bug. It is a documented behavior [1]. >=20 > "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." >=20 >=20 > [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=C3=A7ois --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs