]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Refactor duplicate code into DeconstructFkConstraintRow
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 18 Jan 2019 17:40:13 +0000 (14:40 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 18 Jan 2019 17:57:49 +0000 (14:57 -0300)
commite974f223abb473ba62577261378ca740c641814f
treeb03988ad9fa3ed2d9665e4e1f353070143b65016
parent3daac78d983f7be1c824ce625c8e92f42ebf41fe
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.
src/backend/catalog/pg_constraint.c
src/backend/utils/adt/ri_triggers.c
src/backend/utils/cache/relcache.c
src/include/catalog/pg_constraint.h