Content-Length: 268419 | pFad | https://github.com/postgrespro/postgres/commit/a1115fa0782378a8238045d238ae70cac36be8ae

81 Postpone some more stuff out of ExecInitModifyTable. · postgrespro/postgres@a1115fa · GitHub
Skip to content

Commit a1115fa

Browse files
committed
Postpone some more stuff out of ExecInitModifyTable.
Delay creation of the projections for INSERT and UPDATE tuples until they're needed. This saves a pretty fair amount of work when only some of the partitions are actually touched. The logic associated with identifying junk columns in UPDATE/DELETE is moved to another loop, allowing removal of one loop over the target relations; but it didn't actually change at all. Extracted from a larger patch, which seemed to me to be too messy to push in one commit. Amit Langote, reviewed at different times by Heikki Linnakangas and myself Discussion: https://postgr.es/m/CA+HiwqG7ZruBmmih3wPsBZ4s0H2EhywrnXEduckY5Hr3fWzPWA@mail.gmail.com
1 parent 3b82d99 commit a1115fa

File tree

3 files changed

+210
-158
lines changed

3 files changed

+210
-158
lines changed

src/backend/executor/execMain.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,7 @@ InitResultRelInfo(ResultRelInfo *resultRelInfo,
12211221
resultRelInfo->ri_projectNew = NULL;
12221222
resultRelInfo->ri_newTupleSlot = NULL;
12231223
resultRelInfo->ri_oldTupleSlot = NULL;
1224+
resultRelInfo->ri_projectNewInfoValid = false;
12241225
resultRelInfo->ri_FdwState = NULL;
12251226
resultRelInfo->ri_usesFdwDirectModify = false;
12261227
resultRelInfo->ri_ConstraintExprs = NULL;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/a1115fa0782378a8238045d238ae70cac36be8ae

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy