From f16ed0730c0557802ca94b3fccfeaa43c5bf2cd3 Mon Sep 17 00:00:00 2001 From: liyongjin Date: Tue, 24 Nov 2020 16:57:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=BA=86=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/optimizer/commands/tablecmds.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/gausskernel/optimizer/commands/tablecmds.cpp b/src/gausskernel/optimizer/commands/tablecmds.cpp index 00550a420..41fde16fe 100644 --- a/src/gausskernel/optimizer/commands/tablecmds.cpp +++ b/src/gausskernel/optimizer/commands/tablecmds.cpp @@ -10704,18 +10704,6 @@ enable_disable_constraint_primary(Form_pg_constraint con, bool isenable) //recreate index AdaptMem mem_info; - //Oid heapPartOid = InvalidOid; - //TODO, ALTER TABLE ENABLE/DISABLE CONSTRAINT -// if (partition_name != NULL) -// indPartOid = partitionNameGetPartitionOid(indOid, -// partition_name, -// PART_OBJ_TYPE_INDEX_PARTITION, -// AccessExclusiveLock, // lock on index partition -// false, -// false, -// PartitionNameCallbackForIndexPartition, -// (void*)&heapPartOid, -// ShareLock); // lock on heap partition persistence = irel->rd_rel->relpersistence; //the index must be not used