Rewriter and planner should use only resno, not resname, to identify

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

Commit: 302f1a86dc1125f681b9a3b3509d1be7e33b0e4f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-08-11T23:04:50Z
Releases: 7.4.1
Rewriter and planner should use only resno, not resname, to identify
target columns in INSERT and UPDATE targetlists.  Don't rely on resname
to be accurate in ruleutils, either.  This fixes bug reported by
Donald Fraser, in which renaming a column referenced in a rule did not
work very well.

Files