pgsql: Small fixes for Add ALTER TABLE ... ALTER CONSTRAINT ... SET [NO

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Small fixes for Add ALTER TABLE ... ALTER CONSTRAINT ... SET [NO
Date: 2025-03-25 12:41:52
Message-ID: E1tx3bM-000vUl-0r@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)alvh(dot)no-ip(dot)org>
Discussion: https://postgr.es/m/CAF1DzPVfOW6Kk=7SSh7LbneQDJWh=PbJrEC_Wkzc24tHOyQWGg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f4b2a62ae3147ab262eaa21f8be76e569ffd8dfa

Modified Files
--------------
src/backend/commands/tablecmds.c | 6 ++++++
1 file changed, 6 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2025-03-25 13:37:35 pgsql: refactor: Move some code that updates pg_constraint to a separat
Previous Message Alexander Korotkov 2025-03-25 10:54:17 pgsql: postgres_fdw: Remove redundant check in semijoin_target_ok()