Ignore dropped columns during apply of update/delete.
authorAmit Kapila <akapila@postgresql.org>
Tue, 21 Mar 2023 04:17:21 +0000 (09:47 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 21 Mar 2023 04:17:21 +0000 (09:47 +0530)
commitb797def5951fcd8eed2124b7316cc9027d6228cc
treef9f0dab4541c315375cc9e8a2f370d8f7e45b3b3
parent8d578b9b2e37a4d9d6f422ced5126acec62365a7
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
src/backend/executor/execReplication.c
src/test/subscription/t/100_bugs.pl