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/os0pr01mb61133ca11630dae45bc6ad95fb...@os0pr01mb6113.jpnprd01.prod.outlook.com Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/63c3eeddc2db1b939e7f4fa8ad8ad0f3757232b1 Modified Files -------------- src/backend/commands/tablecmds.c | 6 +++ src/test/subscription/t/100_bugs.pl | 84 ++++++++++++++++++++++++++++++++++++- 2 files changed, 89 insertions(+), 1 deletion(-)
