On Wed, Jan 26, 2022 at 3:25 AM Kyotaro Horiguchi <horikyota....@gmail.com> wrote: > The attached is the fixed version and it surely works with the repro.
Hi, I spent the morning working on this patch and came up with the attached version. I wrote substantial comments in RelationTruncate(), where I tried to make it more clear exactly what the bug is here, and also in storage/proc.h, where I tried to clarify both the use of the DELAY_CHKPT_* flags in general terms. If nobody is too sad about this version, I plan to commit it. I think it should be back-patched, too, but that looks like a bit of a pain. I think every back-branch will require different adjustments. -- Robert Haas EDB: http://www.enterprisedb.com
v5-0001-Fix-possible-recovery-trouble-if-TRUNCATE-overlap.patch
Description: Binary data