Standardize on the assumption that the arguments of a RowExpr correspond
Tom Lane <tgl@sss.pgh.pa.us>
Standardize on the assumption that the arguments of a RowExpr correspond to the physical layout of the rowtype, ie, there are dummy arguments corresponding to any dropped columns in the rowtype. We formerly had a couple of places that did it this way and several others that did not. Fixes Gaetano Mendola's "cache lookup failed for type 0" bug of 5-Aug.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execQual.c | modified | +50 −14 |
| src/backend/optimizer/util/clauses.c | modified | +54 −7 |
| src/backend/parser/parse_coerce.c | modified | +44 −14 |
| src/backend/parser/parse_relation.c | modified | +2 −4 |
| src/backend/rewrite/rewriteManip.c | modified | +26 −13 |
| src/backend/utils/adt/ruleutils.c | modified | +38 −6 |
| src/include/nodes/primnodes.h | modified | +15 −2 |
| src/include/parser/parsetree.h | modified | +8 −1 |