]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Invalidate relcache when changing REPLICA IDENTITY index.
authorAmit Kapila <akapila@postgresql.org>
Tue, 16 Nov 2021 03:55:04 +0000 (09:25 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 16 Nov 2021 03:55:04 +0000 (09:25 +0530)
commit40fb634b1a7be5cf27e0d6c391a6f8f0eb4de412
tree2b2f789a429111471d1bb7e057f6aba2a5191d87
parentb062ca508cd4ab701fffc892afd59e07cb7f0c9f
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