pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Ignore generated columns during apply of update/delete.
Date: Thu, 23 Mar 2023 06:43:37 +0000
Message-ID: <E1pfEfh-004wiW-9C@gemulon.postgresql.org> (raw)

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
------
REL_13_STABLE

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

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



view thread (5+ messages)

Message-ID: <E1pfEfh-004wiW-9C@gemulon.postgresql.org>
Permalink:  ../E1pfEfh-004wiW-9C@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pfEfh-004wiW-9C@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Ignore generated columns during apply of update/delete.
  In-Reply-To: <E1pfEfh-004wiW-9C@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox