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 07:40:00 +0000 (08:40 +0100)
commitb9c130a1fdf16cd99afb390c186d19acaea7d132
tree6d7932c02432ad038b1635a847bc888028332def
parent7b283d0e1d1d79bf1c962d790c94d2a53f3bb38a
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