Fix OID passed to object-alter hook during ALTER CONSTRAINT
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 4 May 2021 14:09:12 +0000 (10:09 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 4 May 2021 14:09:12 +0000 (10:09 -0400)
commite798d095da3a4a4bb5c50bb3dff886f07ef52f55
treecb38c2f1bdfdf8ba2e531af6c583e1cb9a7cfb8e
parentc98a6d7887ea6588b4e9797903182312a2b46f67
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