Refactor pgoutput_change().
authorAmit Kapila <akapila@postgresql.org>
Thu, 30 Mar 2023 05:40:38 +0000 (11:10 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 30 Mar 2023 05:40:38 +0000 (11:10 +0530)
commitda324d6cd45bbbcc1682cc2fcbc4f575281916af
treee242fdf7daf8e7be55f88c14e3bb6345073c2651
parent902ecd3bd4e733d273e69fd420df6fab4ffbe79b
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
src/backend/replication/pgoutput/pgoutput.c