!3196 优化5.0.0内bypass内性能消耗点

Merge pull request !3196 from 胡正超/5.0.0
This commit is contained in:
opengauss-bot
2023-03-22 06:25:59 +00:00
committed by Gitee

View File

@ -602,7 +602,8 @@ bool UpdateFusion::execute(long max_rows, char *completionTag)
m_c_local.m_estate->es_plannedstmt = m_global->m_planstmt;
if (result_rel_info->ri_RelationDesc->rd_rel->relhasindex) {
ExecOpenIndices(result_rel_info, true);
bool speculative = m_c_local.m_estate->es_plannedstmt && m_c_local.m_estate->es_plannedstmt->hasIgnore;
ExecOpenIndices(result_rel_info, speculative);
}
ModifyTable* node = (ModifyTable*)(m_global->m_planstmt->planTree);