Set the dependency type of Triggers to DEPENDENCY_INTERNAL

This commit is contained in:
jatin parmar 2025-05-16 23:53:30 +00:00
parent 950cfdc223
commit da43a30afa

View file

@ -449,12 +449,13 @@ RefreshImmvByOid(Oid matviewOid, bool is_create, bool skipData,
obj.objectId = foundDep->objid;
obj.objectSubId = foundDep->refobjsubid;
add_exact_object_address(&obj, immv_triggers);
deleteDependencyRecordsFor(obj.classId, obj.objectId, false);
}
systable_endscan(tgscan);
}
}
systable_endscan(scan);
CommandCounterIncrement();
performMultipleDeletions(immv_triggers, DROP_RESTRICT, PERFORM_DELETION_INTERNAL);
table_close(depRel, RowExclusiveLock);