postgresql/src/include/replication
Amit Kapila b7658c24c7 Fix data inconsistency between publisher and subscriber.
We were not updating the partition map cache in the subscriber even when
the corresponding remote rel is changed. Due to this data was getting
incorrectly replicated for partition tables after the publisher has
changed the table schema.

Fix it by resetting the required entries in the partition map cache after
receiving a new relation mapping from the publisher.

Reported-by: Shi Yu
Author: Shi Yu, Hou Zhijie
Reviewed-by: Amit Langote, Amit Kapila
Backpatch-through: 13, where it was introduced
Discussion: https://postgr.es/m/OSZPR01MB6310F46CD425A967E4AEF736FDA49@OSZPR01MB6310.jpnprd01.prod.outlook.com
2022-06-16 08:45:07 +05:30
..
backup_manifest.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
basebackup.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
basebackup_sink.h Rename backup_compression.{c,h} to compression.{c,h} 2022-04-12 13:38:54 +09:00
basebackup_target.h Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
decode.h Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
logical.h Fix the logical replication timeout during large transactions. 2022-05-11 11:11:44 +05:30
logicallauncher.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
logicalproto.h Revert "Logical decoding of sequences" 2022-04-07 20:06:36 +02:00
logicalrelation.h Fix data inconsistency between publisher and subscriber. 2022-06-16 08:45:07 +05:30
logicalworker.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
message.h Add missing 'extern' to function prototypes. 2022-05-12 12:39:33 -07:00
origin.h Add missing 'extern' to function prototypes. 2022-05-12 12:39:33 -07:00
output_plugin.h Revert "Logical decoding of sequences" 2022-04-07 20:06:36 +02:00
pgoutput.h Revert "Logical decoding of sequences" 2022-04-07 20:06:36 +02:00
reorderbuffer.h Add missing 'extern' to function prototypes. 2022-05-12 12:39:33 -07:00
slot.h Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
snapbuild.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
syncrep.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
walreceiver.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
walsender.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
walsender_private.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
worker_internal.h Add missing 'extern' to function prototypes. 2022-05-12 12:39:33 -07:00