修复update多表时并发场景下的数据不一致问题

This commit is contained in:
wuyujun
2022-09-28 11:25:58 +08:00
parent b44fa53ed1
commit df293a15d6
7 changed files with 57 additions and 10 deletions

View File

@ -3473,7 +3473,8 @@ TupleTableSlot* ExecModifyTable(ModifyTableState* node)
}
}
EvalPlanQualSetSlot(&node->mt_epqstate, plan_slot);
if (estate->result_rel_index == 0)
EvalPlanQualSetSlot(&node->mt_epqstate, plan_slot);
slot = plan_slot;
slot->tts_tupleDescriptor->tdTableAmType = result_rel_info->ri_RelationDesc->rd_tam_type;