Dear Bertrand, Xuneng, Thanks for sharing the reproducer and opinion. I could now understand.
While seeing, I felt the same issue can happen even for the streaming case. Please see attached reproducer and possible fix. Can you also include that point? Or this thread discusses only for the logical case? If separated, I can take initiative for the streaming part, after the logical decoding case. Best regards, Hayato Kuroda FUJITSU LIMITED
0001-Reproducer-for-the-streaming-replication.patch
Description: 0001-Reproducer-for-the-streaming-replication.patch
0002-Fix-race-condition-in-streaming-replication-timeline.patch
Description: 0002-Fix-race-condition-in-streaming-replication-timeline.patch
