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 <sula...@gmail.com>
Discussion: 
https://postgr.es/m/CAAJ_b96Bp=-ZwihPPtuaNX=srz0u6zsxd3+fgaro0juka8v...@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(-)

Reply via email to