From 36ae632ff1d5ae7870e219a7460cda64c10fab51 Mon Sep 17 00:00:00 2001 From: gentle_hu Date: Mon, 20 Mar 2023 15:33:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbypass=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E6=B6=88=E8=80=97=E7=82=B9=20=E5=BD=93=E9=9D=9Eignore=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=E6=97=A0=E9=9C=80=E6=8C=87=E5=AE=9A?= =?UTF-8?q?speculative?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/runtime/opfusion/opfusion_update.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gausskernel/runtime/opfusion/opfusion_update.cpp b/src/gausskernel/runtime/opfusion/opfusion_update.cpp index 0eb260c48..a04c7ee69 100644 --- a/src/gausskernel/runtime/opfusion/opfusion_update.cpp +++ b/src/gausskernel/runtime/opfusion/opfusion_update.cpp @@ -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);