agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Mike Martin <redtux1@gmail.com>
Cc: pgsql-sql <pgsql-sql@lists.postgresql.org>
Subject: Re: Clarification on pg_attribute attrelid
Date: Fri, 11 Sep 2020 10:12:44 -0400
Message-ID: <370678.1599833564@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOwYNKYJ-MkzvEbfnHGFpYEisZUz6iE4-md3z5b0ZPV-7dZ_1w@mail.gmail.com>
References: <CAOwYNKYJ-MkzvEbfnHGFpYEisZUz6iE4-md3z5b0ZPV-7dZ_1w@mail.gmail.com>
Mike Martin <redtux1@gmail.com> writes:
> Is it correct that calling attrelid::regclass will always return a
> non-schema qualified relation name
No. regclassout will schema-qualify if the table isn't visible
according to the current search path.
I didn't check, but I think "not visible" would include the case
of "table is hidden by a temp table of the same name".
regards, tom lane
view thread (2+ messages)
Message-ID: <370678.1599833564@sss.pgh.pa.us>
Permalink: ../370678.1599833564@sss.pgh.pa.us/
Also on: postgresql.org/message-id/370678.1599833564@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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, redtux1@gmail.com, pgsql-sql@lists.postgresql.org
Subject: Re: Clarification on pg_attribute attrelid
In-Reply-To: <370678.1599833564@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox