pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Etsuro Fujita <efujita@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: postgres_fdw: Remove duplicate code in DML execution callback fu
Date: Thu, 17 Jan 2019 05:41:21 +0000
Message-ID: <E1gk0Qb-0003yn-PX@gemulon.postgresql.org> (raw)

postgres_fdw: Remove duplicate code in DML execution callback functions.

postgresExecForeignInsert(), postgresExecForeignUpdate(), and
postgresExecForeignDelete() are coded almost identically, except that
postgresExecForeignInsert() does not need CTID.  Extract that code into
a separate function and use it in all the three function implementations.

Author: Ashutosh Bapat
Reviewed-By: Michael Paquier
Discussion: https://postgr.es/m/CAFjFpRcz8yoY7cBTYofcrCLwjaDeCcGKyTUivUbRiA57y3v-bw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6c61d7c5935793e218d2335ac540a2cea7eacdce

Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 283 +++++++++++++-----------------------
1 file changed, 103 insertions(+), 180 deletions(-)



Message-ID: <E1gk0Qb-0003yn-PX@gemulon.postgresql.org>
Permalink:  ../E1gk0Qb-0003yn-PX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gk0Qb-0003yn-PX@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: efujita@postgresql.org
  Subject: Re: pgsql: postgres_fdw: Remove duplicate code in DML execution callback fu
  In-Reply-To: <E1gk0Qb-0003yn-PX@gemulon.postgresql.org>
  References: <E1gk0Qb-0003yn-PX@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