pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: kimber7@illinois.edu
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17634: Inconsistent view_definition in information_schema.views
Date: Tue, 11 Oct 2022 10:58:19 -0400
Message-ID: <311953.1665500299@sss.pgh.pa.us> (raw)
In-Reply-To: <17634-fd5cb524a79c1df9@postgresql.org>
References: <17634-fd5cb524a79c1df9@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> 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





view thread (3+ messages)  latest in thread

Message-ID: <311953.1665500299@sss.pgh.pa.us>
Permalink:  ../311953.1665500299@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/311953.1665500299@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, kimber7@illinois.edu, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17634: Inconsistent view_definition in information_schema.views
  In-Reply-To: <311953.1665500299@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