On Fri, Mar 13, 2026 at 2:24 AM Fujii Masao <[email protected]> wrote: > Thanks for investigating the issue and making the patch! > It looks good to me.
Since Tomas added GetXLogInsertEndRecPtr() in commit b1f14c96720, I updated the patch to use it. Patch attached. Barring any objections, I will commit it. - XLogFlush(GetXLogWriteRecPtr()); + XLogFlush(GetXLogInsertEndRecPtr()); I excluded the above change from the patch because it seems like a separate issue. I also wonder whether this code could cause an error in XLogFlush() even when GetXLogWriteRecPtr() is used. Regards, -- Fujii Masao
v2-0001-Fix-WAL-flush-LSN-used-by-logical-walsender-durin.patch
Description: Binary data
