pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor duplicate code into DeconstructFkConstraintRow
Date: Fri, 18 Jan 2019 18:07:28 +0000
Message-ID: <E1gkYYC-0005HZ-Rk@gemulon.postgresql.org> (raw)

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(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1gkYYC-0005HZ-Rk@gemulon.postgresql.org>
Permalink:  ../E1gkYYC-0005HZ-Rk@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gkYYC-0005HZ-Rk@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Refactor duplicate code into DeconstructFkConstraintRow
  In-Reply-To: <E1gkYYC-0005HZ-Rk@gemulon.postgresql.org>
  References: <E1gkYYC-0005HZ-Rk@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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