pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Refactor duplicate code into DeconstructFkConstraintRow 2+ messages / 1 participants [nested] [flat]
* pgsql: Refactor duplicate code into DeconstructFkConstraintRow @ 2019-01-18 18:07 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2019-01-18 18:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0080396dad4fe59a91f6d7e9c1f806affcfc68c3 Modified Files -------------- src/backend/catalog/pg_constraint.c | 201 ++++++++++++++++++++---------------- src/backend/utils/adt/ri_triggers.c | 89 ++-------------- src/backend/utils/cache/relcache.c | 61 +---------- src/include/catalog/pg_constraint.h | 3 + 4 files changed, 126 insertions(+), 228 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Refactor duplicate code into DeconstructFkConstraintRow @ 2019-01-18 18:07 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2019-01-18 18:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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. Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e974f223abb473ba62577261378ca740c641814f Modified Files -------------- src/backend/catalog/pg_constraint.c | 199 ++++++++++++++++++++---------------- src/backend/utils/adt/ri_triggers.c | 89 ++-------------- src/backend/utils/cache/relcache.c | 61 +---------- src/include/catalog/pg_constraint.h | 3 + 4 files changed, 124 insertions(+), 228 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-01-18 18:07 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-01-18 18:07 pgsql: Refactor duplicate code into DeconstructFkConstraintRow Alvaro Herrera <alvherre@alvh.no-ip.org> 2019-01-18 18:07 pgsql: Refactor duplicate code into DeconstructFkConstraintRow Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox