• Alvaro Herrera's avatar
    Refactor duplicate code into DeconstructFkConstraintRow · 0080396d
    Alvaro Herrera authored
    My commit 3de241db introduced some code (in tablecmds.c) to obtain
    data from a pg_constraint row for a foreign key, that already existed in
    ri_triggers.c.  Split it out into its own routine in pg_constraint.c,
    where it naturally belongs.
    
    No functional code changes, only code movement.
    
    Backpatch to pg11, because a future bugfix is simpler after this.
    0080396d
pg_constraint.c 45.6 KB