Remove ruleutils.c's use of varnoold/varoattno as a shortcut for determining
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 May 2007 18:58:42 +0000 (18:58 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 May 2007 18:58:42 +0000 (18:58 +0000)
commitce5b24abedd3db058c832aabb19940935b2903ae
tree4f16a19a6f4ba865a1bd10560768ce972640598b
parenta868e24660357d6f214511198e47bd0962dfdc5d
Remove ruleutils.c's use of varnoold/varoattno as a shortcut for determining
what a Var node refers to.  This is no longer necessary because the new
flat-range-table representation of plan trees makes it relatively easy to dig
down through child plan levels to find the original reference; and to keep
doing it that way, we'd have to store joinaliasvars lists in flattened RTEs,
as demonstrated by bug report from Leszek Trenkner.  This change makes
varnoold/varoattno truly just debug aids, which wasn't quite the case before.
Perhaps we should drop them, or only have them in assert-enabled builds?
src/backend/utils/adt/ruleutils.c