Invalidate relcache when changing REPLICA IDENTITY index.
authorAmit Kapila <[email protected]>
Tue, 16 Nov 2021 04:14:00 +0000 (09:44 +0530)
committerAmit Kapila <[email protected]>
Tue, 16 Nov 2021 04:14:00 +0000 (09:44 +0530)
commit2c0443c595705b6eda1932e4b1b3debc2162986d
tree1b47abbc53f40cf00160da053ed129b6d6ad3433
parent3bc46e4e9d7a9da9a4cfa9795219509af79e93af
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
src/backend/commands/tablecmds.c
src/test/subscription/t/100_bugs.pl