Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita1115fa

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp