pgsql: Ignore generated columns during apply of update/delete.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Ignore generated columns during apply of update/delete.
Date: 2023-03-23 06:43:37
Message-ID: E1pfEfh-004wiQ-7b@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Ignore generated columns during apply of update/delete.

We fail to apply updates and deletes when the REPLICA IDENTITY FULL is
used for the table having generated columns. We didn't use to ignore
generated columns while doing tuple comparison among the tuples from
the publisher and subscriber during apply of updates and deletes.

Author: Onder Kalaci
Reviewed-by: Shi yu, Amit Kapila
Backpatch-through: 12
Discussion: https://postgr.es/m/CACawEhVQC9WoofunvXg12aXtbqKnEgWxoRx3+v8q32AWYsdpGg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/adedf54e659ea37316a21c8d5a7aa8f711213d1c

Modified Files
--------------
src/backend/executor/execReplication.c | 5 +++--
src/test/subscription/t/100_bugs.pl | 16 +++++++++++++---
2 files changed, 16 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2023-03-23 16:39:33 pgsql: Wrap ICU ucol_open().
Previous Message Amit Kapila 2023-03-23 03:21:57 pgsql: Allow logical replication to copy tables in binary format.