]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix OID passed to object-alter hook during ALTER CONSTRAINT
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 4 May 2021 14:09:11 +0000 (10:09 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 4 May 2021 14:09:11 +0000 (10:09 -0400)
commit91a6b3862fef95c3075d9bea945b6d974433389f
tree162fb5a22ef1ff426698db792b52eb7311db146b
parenta6a3a274abd1368a0104fe2cfc7227c9a7e95970
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 very
well tested :-(

Backpatch to 12, where this typo was introduced by 578b229718e8

Discussion: https://postgr.es/m/20210503231633.GA6994@alvherre.pgsql
src/backend/commands/tablecmds.c