修复添加触发器和系统方法在索引上无法进行闪回drop问题

This commit is contained in:
sundechao
2024-06-18 16:22:05 +08:00
committed by yaoxin
parent 77f03fb936
commit 5691bf976c

View File

@ -1112,7 +1112,10 @@ static bool TrNeedPhyDelete(Relation depRel, ObjectAddresses *targetObjects, Obj
/* Step 1: tag refobjs of thisobj, return directly if ALL refobjs not need physical drop. */
for (int i = 0; i < refobjs->numrefs; i++) {
item = refobjs->refs + i;
if (!TrObjIsInList(targetObjects, item)) {
/* Skip the judgemnt on the obj in the pg_proc table and perform logical delection
* by default.
*/
if (item->classId != ProcedureRelationId && !TrObjIsInList(targetObjects, item)) {
result = true;
break;
}