Thread: pgsql: Refactor pgoutput_change().

pgsql: Refactor pgoutput_change().

From
Amit Kapila
Date:
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(-)