Subject: pgsql: refactor: re-add ATExecAlterChildConstr()

From: Peter Eisentraut <[email-masked]>
Date: Tue, 11 Mar 2025 07:48:00 +0000

refactor: re-add ATExecAlterChildConstr()

ATExecAlterChildConstr() was removed in commit 80d7f990496, but it is
needed in some subsequent patches for the NOT ENFORCED feature, to
recurse over child constraints.  This adds it back in slightly altered
form.

Author: Amul Sul <[email-masked]>
Reviewed-by: Alexandra Wang <[email-masked]>
Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b962c5AcYW9KUt_R_ER5qs3fUGbe4az-SP-vuwPS-w-AGA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/64224a834ce4c899e878db27b14ea3412a6ddbed

Modified Files
--------------
src/backend/commands/tablecmds.c | 84 ++++++++++++++++++++++++++--------------
1 file changed, 54 insertions(+), 30 deletions(-)

---

From: Álvaro Herrera <[email-masked]>
Date: Tue, 11 Mar 2025 10:09:44 +0100

> recurse over child constraints.  This adds it back in slightly altered

FWIW I disagree with this approach and I think this particular piece
should not be committed until we have clarity on what is 0008 going to
actually do.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"No tengo por qué estar de acuerdo con lo que pienso"
                             (Carlos Caszeli)