Have logical replication subscriber fire column triggers
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 6 Jan 2020 07:21:14 +0000 (08:21 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 6 Jan 2020 10:38:33 +0000 (11:38 +0100)
commit66fd0adc73a8d3b0c43423c7d263cba37edaa36b
tree3c7cfae722750cc0965e42265975f02d5ba41c9d
parent91595d181707e1ebfb37f7334ad89f24f677c8a7
Have logical replication subscriber fire column triggers

The logical replication apply worker did not fire per-column update
triggers because the updatedCols bitmap in the RTE was not populated.
This fixes that.

Reviewed-by: Euler Taveira <euler@timbira.com.br>
Discussion: https://www.postgresql.org/message-id/flat/21673e2d-597c-6afe-637e-e8b10425b240%402ndquadrant.com
src/backend/replication/logical/worker.c
src/test/subscription/t/003_constraints.pl