pgsql: Ignore dropped 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 dropped columns during apply of update/delete.
Date: 2023-03-21 04:31:50
Message-ID: E1peTf4-004adC-0S@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Ignore dropped columns during apply of update/delete.

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

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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/751d6676daf3413f7c0fbc83860238d02114dbcd

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

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-03-21 07:11:04 pgsql: pg_waldump: Allow hexadecimal values for -t/--timeline option
Previous Message Thomas Munro 2023-03-21 01:59:06 pgsql: Fix race in parallel hash join batch cleanup, take II.