refactor: Move some code that updates pg_constraint to a separate function
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 25 Mar 2025 13:37:22 +0000 (14:37 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 25 Mar 2025 13:37:22 +0000 (14:37 +0100)
commita3280e2a494fe369a041ebdefdf2afb515952c18
treea4bcdb33f129df0805027dc1a0598fe3f712edc4
parentf4b2a62ae3147ab262eaa21f8be76e569ffd8dfa
refactor: Move some code that updates pg_constraint to a separate function

This extracts common/duplicate code for different ALTER CONSTRAINT
variants into a common function.  We plan to add more variants that
would use the same code.

Author: Amul Sul <amul.sul@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b962c5AcYW9KUt_R_ER5qs3fUGbe4az-SP-vuwPS-w-AGA@mail.gmail.com
src/backend/commands/tablecmds.c