501
501
attnum = specialAttNum(colname);
502
502
if (attnum != InvalidAttrNumber)
505
511
if (SearchSysCacheExists2(ATTNUM,
506
512
ObjectIdGetDatum(rte->relid),
509
516
var = make_var(pstate, rte, attnum, location);
510
517
/* Require read access to the column */