On Mon, Apr 8, 2024 at 12:19 PM Zhijie Hou (Fujitsu) <houzj.f...@fujitsu.com> wrote: > > On Saturday, April 6, 2024 12:43 PM Amit Kapila <amit.kapil...@gmail.com> > wrote: > > On Fri, Apr 5, 2024 at 8:05 PM Bertrand Drouvot > > <bertranddrouvot...@gmail.com> wrote: > > > > Yeah, that could be the first step. We can probably add an injection point > > to > > control the bgwrite behavior and then add tests involving walsender > > performing the decoding. But I think it is important to have sufficient > > tests in > > this area as I see they are quite helpful in uncovering the issues. > > Here is the patch to drop the subscription in the beginning so that the > restart_lsn of the lsub1_slot won't be advanced due to concurrent > xl_running_xacts from bgwriter. The subscription will be re-created after all > the slots are sync-ready. I think maybe we can use this to stabilize the test > as a first step and then think about how to make use of injection point to add > more tests if it's worth it. >
Pushed. -- With Regards, Amit Kapila.