pgsql: Have logical replication subscriber fire column triggers

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Have logical replication subscriber fire column triggers
Date: 2020-01-06 10:39:06
Message-ID: E1ioPms-00082k-Nm@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)timbira(dot)com(dot)br>
Discussion: https://www.postgresql.org/message-id/flat/21673e2d-597c-6afe-637e-e8b10425b240%402ndquadrant.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7474393e0b98971c7779cbb23c2d7d17e38a944c

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

Browse pgsql-committers by date

  From Date Subject
Next Message Christoph Berg 2020-01-06 10:56:08 Re: pgsql: Add basic TAP tests for psql's tab-completion logic.
Previous Message Peter Eisentraut 2020-01-06 07:51:24 pgsql: Have logical replication subscriber fire column triggers