Fix OID passed to object-alter hook during ALTER CONSTRAINT

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: e798d095da3a4a4bb5c50bb3dff886f07ef52f55
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2021-05-04T14:09:12Z
Releases: 14.0
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

Files

PathChange+/−
src/backend/commands/tablecmds.c modified +1 −1

Discussion