Small fixes for Add ALTER TABLE ... ALTER CONSTRAINT ... SET [NO] INHERIT
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 25 Mar 2025 12:40:24 +0000 (13:40 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 25 Mar 2025 12:40:24 +0000 (13:40 +0100)
commitf4b2a62ae3147ab262eaa21f8be76e569ffd8dfa
treeca4b306a5896c82692d96101508e3767b9e22be1
parent62f36d6924c740b5a566d64c563789d20cd4a5e1
Small fixes for Add ALTER TABLE ... ALTER CONSTRAINT ... SET [NO] INHERIT

Small fixes for commit f4e53e10b6c: Add missing calls to
InvokeObjectPostAlterHook() and also CacheInvalidateRelcache().  The
former change could have a user-visible effect.  The latter omission
might have caused other bugs, but it is not clear whether one actually
existed.  With these changes, the code is now more consistent with
similar ALTER CONSTRAINT variants, especially the ones that set the
deferrability.

Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/CAF1DzPVfOW6Kk=7SSh7LbneQDJWh=PbJrEC_Wkzc24tHOyQWGg@mail.gmail.com
src/backend/commands/tablecmds.c