Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiGiA-00077R-3z for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Oct 2022 14:58:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oiGi8-0007D8-Rw for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Oct 2022 14:58:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiGi8-0007Cz-KG for pgsql-bugs@lists.postgresql.org; Tue, 11 Oct 2022 14:58:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiGi6-0002ON-AV for pgsql-bugs@lists.postgresql.org; Tue, 11 Oct 2022 14:58:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 29BEwJdR311954; Tue, 11 Oct 2022 10:58:19 -0400 From: Tom Lane To: kimber7@illinois.edu cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17634: Inconsistent view_definition in information_schema.views In-reply-to: <17634-fd5cb524a79c1df9@postgresql.org> References: <17634-fd5cb524a79c1df9@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 11 Oct 2022 13:32:03 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <311952.1665500299.1@sss.pgh.pa.us> Date: Tue, 11 Oct 2022 10:58:19 -0400 Message-ID: <311953.1665500299@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > If I run my query against information_schema.views while my session is > active in a schema that is referenced in my query, information_schema.views > strips out that schema name. All other objects remain schema qualified. This is not a bug, it's normal behavior of the rule decompiler: object names are qualified only if necessary (where "necessary" means "would not be found in a search_path search"). If you don't like it, set search_path to empty. regards, tom lane