pgsql: refactor: Split tryAttachPartitionForeignKey()

Started by Peter Eisentrautover 1 year ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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.sul@enterprisedb.com>
Reviewed-by: Alexandra Wang <alexandra.wang.oss@gmail.com>
Discussion: /messages/by-id/CAAJ_b962c5AcYW9KUt_R_ER5qs3fUGbe4az-SP-vuwPS-w-AGA@mail.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(-)