Refactor duplicate code into DeconstructFkConstraintRow

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: e974f223abb473ba62577261378ca740c641814f
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2019-01-18T17:57:49Z
Releases: 11.2
Refactor duplicate code into DeconstructFkConstraintRow

My commit 3de241dba86f 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.

Files