Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite798d09

Browse files
committed
Fix OID passed to object-alter hook during ALTER CONSTRAINT
The OID of the constraint is used instead of the OID of the trigger --an easy mistake to make. Apparently the object-alter hooks are not verywell tested :-(Backpatch to 12, where this typo was introduced by578b229Discussion:https://postgr.es/m/20210503231633.GA6994@alvherre.pgsql
1 parentc98a6d7 commite798d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10319,7 +10319,7 @@ ATExecAlterConstraint(Relation rel, AlterTableCmd *cmd,
1031910319
copy_tg->tginitdeferred = cmdcon->initdeferred;
1032010320
CatalogTupleUpdate(tgrel, &copyTuple->t_self, copyTuple);
1032110321

10322-
InvokeObjectPostAlterHook(TriggerRelationId,currcon->oid, 0);
10322+
InvokeObjectPostAlterHook(TriggerRelationId,tgform->oid, 0);
1032310323

1032410324
heap_freetuple(copyTuple);
1032510325
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp