pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor pgoutput_change().
Date: Thu, 30 Mar 2023 05:56:58 +0000
Message-ID: <E1phlHM-000QLs-S0@gemulon.postgresql.org> (raw)

Refactor pgoutput_change().

Instead of mostly-duplicate code for different operation
(insert/update/delete) types, write a common code to compute old/new
tuples, and check the row filter.

Author: Hou Zhijie
Reviewed-by: Peter Smith, Amit Kapila
Discussion: https://postgr.es/m/OS0PR01MB5716194A47FFA8D91133687D94BF9@OS0PR01MB5716.jpnprd01.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/da324d6cd45bbbcc1682cc2fcbc4f575281916af

Modified Files
--------------
src/backend/replication/pgoutput/pgoutput.c | 235 ++++++++++------------------
1 file changed, 79 insertions(+), 156 deletions(-)



Message-ID: <E1phlHM-000QLs-S0@gemulon.postgresql.org>
Permalink:  ../E1phlHM-000QLs-S0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1phlHM-000QLs-S0@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Refactor pgoutput_change().
  In-Reply-To: <E1phlHM-000QLs-S0@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