Ignore dropped columns during apply of update/delete.
authorAmit Kapila <akapila@postgresql.org>
Tue, 21 Mar 2023 03:48:51 +0000 (09:18 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 21 Mar 2023 03:48:51 +0000 (09:18 +0530)
commit65ead76961a4be9a10d1c7dbfdcb10765aad8af9
tree5b6cc1997ffdfa47cc7a8415b16193cf4bd15e17
parent1b9e42e82ae62f2a53e4a3da19b5fff994af5d72
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