Set the dependency type of Triggers to DEPENDENCY_INTERNAL

This commit is contained in:
jatin parmar 2025-04-22 15:31:26 +00:00
parent eab5195be5
commit 950cfdc223
2 changed files with 2 additions and 2 deletions

View file

@ -759,7 +759,7 @@ CreateIvmTrigger(Oid relOid, Oid viewOid, int16 type, int16 timing, bool ex_lock
address = CreateTrigger(ivm_trigger, NULL, relOid, InvalidOid, InvalidOid,
InvalidOid, InvalidOid, InvalidOid, NULL, true, false);
recordDependencyOn(&address, &refaddr, DEPENDENCY_AUTO);
recordDependencyOn(&address, &refaddr, DEPENDENCY_INTERNAL);
/* Make changes-so-far visible */
CommandCounterIncrement();

View file

@ -315,7 +315,7 @@ CreateChangePreventTrigger(Oid matviewOid)
address = CreateTrigger(ivm_trigger, NULL, matviewOid, InvalidOid, InvalidOid,
InvalidOid, InvalidOid, InvalidOid, NULL, true, false);
recordDependencyOn(&address, &refaddr, DEPENDENCY_AUTO);
recordDependencyOn(&address, &refaddr, DEPENDENCY_INTERNAL);
}
/* Make changes-so-far visible */