From 1ce8473ffcc70ba346af69f99b5bf4a07682f35c Mon Sep 17 00:00:00 2001 From: duzhuolin Date: Thu, 27 Jul 2023 21:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E7=BA=A7=E5=88=86?= =?UTF-8?q?=E5=8C=BAustore=E8=A1=A8exchange=20partition=E5=90=8E=EF=BC=8Cu?= =?UTF-8?q?pdate=E6=95=B0=E6=8D=AE=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/backend/catalog/index.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common/backend/catalog/index.cpp b/src/common/backend/catalog/index.cpp index 7e99bbf96..415c9a0ee 100644 --- a/src/common/backend/catalog/index.cpp +++ b/src/common/backend/catalog/index.cpp @@ -6590,10 +6590,8 @@ void ScanPartitionInsertIndex(Relation partTableRel, Relation partRel, const Lis ListCell* cell = NULL; ListCell* cell1 = NULL; EState* estate = NULL; - TupleDesc tupleDesc = NULL; TupleTableSlot* slot = NULL; - tupleDesc = partRel->rd_att; if (PointerIsValid(indexRelList)) { estate = CreateExecutorState(); @@ -6614,8 +6612,9 @@ void ScanPartitionInsertIndex(Relation partTableRel, Relation partRel, const Lis Relation indexRel = (Relation)lfirst(cell); IndexInfo* indexInfo = static_cast(lfirst(cell1)); - Datum values[tupleDesc->natts]; - bool isNull[tupleDesc->natts]; + Datum values[INDEX_MAX_KEYS]; + bool isNull[INDEX_MAX_KEYS]; + bool estateIsNotNull = false; ItemPointer t_ctid = tableam_tops_get_t_self(partTableRel, tuple);