OSDN Git Service

Fix handling of type tuple associated with a temp relation. We have
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Jun 2000 01:41:22 +0000 (01:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Jun 2000 01:41:22 +0000 (01:41 +0000)
commit996659f2556843490827eb5027b53bac4b10783d
tree54fc74b0573dd91922b7401e975013d92eb9f254
parenta1dfaef6c6e2da34dbc808f205665a6c96362149
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
src/backend/parser/parse_relation.c
src/backend/utils/cache/syscache.c