Mike Martin <redtux1(at)gmail(dot)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