• Tom Lane's avatar
    Fix handling of type tuple associated with a temp relation. We have · 996659f2
    Tom Lane authored
    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
    996659f2
parse_relation.c 12.3 KB