Don't bother to attach column name lists to RowExprs of named types.
Tom Lane <tgl@sss.pgh.pa.us>
Don't bother to attach column name lists to RowExprs of named types. If a RowExpr is marked as returning a named composite type, we aren't going to consult its colnames list; we'll use the attribute names shown for the type in pg_attribute. Hence, skip storing that list, to save a few nanoseconds when copying the expression tree around. Discussion: https://postgr.es/m/2950001.1638729947@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/prep/prepjointree.c | modified | +3 −3 |
| src/backend/optimizer/util/var.c | modified | +1 −0 |
| src/backend/rewrite/rewriteManip.c | modified | +3 −3 |
| src/include/nodes/primnodes.h | modified | +7 −9 |
Discussion
- ExecTypeSetColNames is fundamentally broken 10 messages · 2021-12-05 → 2022-03-17