pgsql: Invalidate relcache when changing REPLICA IDENTITY index. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Invalidate relcache when changing REPLICA IDENTITY index.
Date
Msg-id E1mmq5S-0003RN-F5@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Invalidate relcache when changing REPLICA IDENTITY index.

When changing REPLICA IDENTITY INDEX to another one, the target table's
relcache was not being invalidated. This leads to skipping update/delete
operations during apply on the subscriber side as the columns required to
search corresponding rows won't get logged.

Author: Tang Haiying, Hou Zhijie
Reviewed-by: Euler Taveira, Amit Kapila
Backpatch-through: 10
Discussion: https://postgr.es/m/OS0PR01MB61133CA11630DAE45BC6AD95FB939@OS0PR01MB6113.jpnprd01.prod.outlook.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9816e2d3182681f0cdd31b5b0d15cfb2d62cc784

Modified Files
--------------
src/backend/commands/tablecmds.c    |  6 +++
src/test/subscription/t/100_bugs.pl | 86 ++++++++++++++++++++++++++++++++++++-
2 files changed, 91 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Fix thinko in bbsink_throttle_manifest_contents.
Next
From: Robert Haas
Date:
Subject: pgsql: Move InitXLogInsert() call from InitXLOGAccess() to BaseInit().