Fix handling of type tuple associated with a temp relation. We have

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 996659f2556843490827eb5027b53bac4b10783d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-06-20T01:41:22Z
Releases: 7.1.1
Fix handling of type tuple associated with a temp relation.  We have
to apply the tempname->realname mapping to type name lookup as well
as relation name lookup, else the type tuple will not be found when
wanted.  This fixes bugs like this one:
create temp table foo (f1 int);
select foo.f2 from foo;
ERROR:  Unable to locate type name 'foo' in catalog

Files

PathChange+/−
src/backend/parser/parse_relation.c modified +30 −27
src/backend/utils/cache/syscache.c modified +12 −6