Set the dependency type of Triggers to DEPENDENCY_INTERNAL
This commit is contained in:
parent
950cfdc223
commit
da43a30afa
1 changed files with 2 additions and 1 deletions
|
|
@ -449,12 +449,13 @@ RefreshImmvByOid(Oid matviewOid, bool is_create, bool skipData,
|
||||||
obj.objectId = foundDep->objid;
|
obj.objectId = foundDep->objid;
|
||||||
obj.objectSubId = foundDep->refobjsubid;
|
obj.objectSubId = foundDep->refobjsubid;
|
||||||
add_exact_object_address(&obj, immv_triggers);
|
add_exact_object_address(&obj, immv_triggers);
|
||||||
|
deleteDependencyRecordsFor(obj.classId, obj.objectId, false);
|
||||||
}
|
}
|
||||||
systable_endscan(tgscan);
|
systable_endscan(tgscan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
systable_endscan(scan);
|
systable_endscan(scan);
|
||||||
|
CommandCounterIncrement();
|
||||||
performMultipleDeletions(immv_triggers, DROP_RESTRICT, PERFORM_DELETION_INTERNAL);
|
performMultipleDeletions(immv_triggers, DROP_RESTRICT, PERFORM_DELETION_INTERNAL);
|
||||||
|
|
||||||
table_close(depRel, RowExclusiveLock);
|
table_close(depRel, RowExclusiveLock);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue