去掉了注释。

This commit is contained in:
liyongjin
2020-11-24 16:57:45 +08:00
parent 76d3983c35
commit f16ed0730c

View File

@ -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