pgsql: refactor: Split tryAttachPartitionForeignKey()

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: refactor: Split tryAttachPartitionForeignKey()
Date: 2025-03-11 08:40:01
Message-ID: E1trv9d-001tn4-1h@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

refactor: Split tryAttachPartitionForeignKey()

Split tryAttachPartitionForeignKey() into three functions:
AttachPartitionForeignKey(), RemoveInheritedConstraint(), and
DropForeignKeyConstraintTriggers(), so they can be reused in some
subsequent patches for the NOT ENFORCED feature.

Author: Amul Sul <amul(dot)sul(at)enterprisedb(dot)com>
Reviewed-by: Alexandra Wang <alexandra(dot)wang(dot)oss(at)gmail(dot)com>
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/1d26c2d2c4b8d833a63ba403bc9313db2c091aa7

Modified Files
--------------
src/backend/commands/tablecmds.c | 319 +++++++++++++++++++++++++--------------
1 file changed, 204 insertions(+), 115 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Álvaro Herrera 2025-03-11 09:09:44 Re: pgsql: refactor: re-add ATExecAlterChildConstr()
Previous Message Peter Eisentraut 2025-03-11 07:48:00 pgsql: refactor: re-add ATExecAlterChildConstr()