Add a reverse-translation column number array to struct AppendRelInfo.
Tom Lane <tgl@sss.pgh.pa.us>
Add a reverse-translation column number array to struct AppendRelInfo. This provides for cheaper mapping of child columns back to parent columns. The one existing use-case in examine_simple_variable() would hardly justify this by itself; but an upcoming bug fix will make use of this array in a mainstream code path, and it seems likely that we'll find other uses for it as we continue to build out the partitioning infrastructure. Discussion: https://postgr.es/m/12424.1575168015@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/nodes/copyfuncs.c | modified | +2 −0 |
| src/backend/nodes/equalfuncs.c | modified | +2 −0 |
| src/backend/nodes/nodeFuncs.c | modified | +1 −0 |
| src/backend/nodes/outfuncs.c | modified | +2 −0 |
| src/backend/optimizer/prep/prepjointree.c | modified | +13 −5 |
| src/backend/optimizer/util/appendinfo.c | modified | +20 −6 |
| src/backend/utils/adt/selfuncs.c | modified | +6 −18 |
| src/include/nodes/pathnodes.h | modified | +16 −11 |
Discussion
- Bogus EXPLAIN results with column aliases for mismatched partitions 9 messages · 2019-12-01 → 2019-12-03