refactor: split ATExecAlterConstrRecurse()

Peter Eisentraut <peter@eisentraut.org>

Commit: 7a947ed25b547256c5e05793467ff0f23991073f
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-01-16T12:24:11Z
Releases: 18.0
refactor: split ATExecAlterConstrRecurse()

This splits out a couple of subroutines from
ATExecAlterConstrRecurse().  This makes the main function a bit
smaller, and a future patch (NOT ENFORCED foreign-key constraints)
will also want to call some of the pieces separately.

Author: Amul Sul <amul.sul@enterprisedb.com>
Reviewed-by: jian he <jian.universality@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b962c5AcYW9KUt_R_ER5qs3fUGbe4az-SP-vuwPS-w-AGA%40mail.gmail.com

Files

PathChange+/−
src/backend/commands/tablecmds.c modified +112 −70

Discussion