Refactor duplicate code into DeconstructFkConstraintRow

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

Commit: 0080396dad4fe59a91f6d7e9c1f806affcfc68c3
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2019-01-18T17:59:44Z
Releases: 12.0
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