Обсуждение: pgsql: Have logical replication subscriber fire column triggers

Поиск
Список
Период
Сортировка

pgsql: Have logical replication subscriber fire column triggers

От
Peter Eisentraut
Дата:
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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/66fd0adc73a8d3b0c43423c7d263cba37edaa36b

Modified Files
--------------
src/backend/replication/logical/worker.c   | 18 ++++++++++++++++
src/test/subscription/t/003_constraints.pl | 34 ++++++++++++++++++++++++++----
2 files changed, 48 insertions(+), 4 deletions(-)