pgsql: Split ATExecValidateConstraint into reusable pieces - Mailing list pgsql-committers

From Álvaro Herrera
Subject pgsql: Split ATExecValidateConstraint into reusable pieces
Date
Msg-id E1tYS4s-001wFl-FP@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Split ATExecValidateConstraint into reusable pieces

With this, we have separate functions to add validation requests to
ALTER TABLE's phase 3 queue for check and foreign key constraints, which
allows reusing them in future commits -- particularly this will allow us
to perform validation of invalid foreign key constraints in partitioned
tables.

We could have let the check constraint code alone since we don't need to
reuse that for anything at this point, but it seems cleaner and more
consistent to do both at the same time.

Author: Amul Sul <sulamul@gmail.com>
Discussion: https://postgr.es/m/CAAJ_b96Bp=-ZwihPPtuaNX=SrZ0U6ZsXD3+fgARO0JuKa8v2jQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/86374c9a0e304520044ab8b2cb84849c7db4a9fa

Modified Files
--------------
src/backend/commands/tablecmds.c | 271 ++++++++++++++++++++++++---------------
1 file changed, 165 insertions(+), 106 deletions(-)


pgsql-committers by date:

Previous
From: Dean Rasheed
Date:
Subject: pgsql: Add OLD/NEW support to RETURNING in DML queries.
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Fix nbtree contradictory array element comment.