Re: collect_corrupt_items_vacuum.patch - Mailing list pgsql-hackers

From Alexander Lakhin
Subject Re: collect_corrupt_items_vacuum.patch
Date
Msg-id 918b9dc0-9af0-a62a-19cc-cb858b163299@gmail.com
Whole thread Raw
In response to Re: collect_corrupt_items_vacuum.patch  (Alexander Korotkov <aekorotkov@gmail.com>)
Responses Re: collect_corrupt_items_vacuum.patch
List pgsql-hackers
Hi Alexander,

04.12.2023 03:23, Alexander Korotkov wrote:
> I managed to reproduce this on a Linux VM.  This problem should arise
> because in extension I don't have access to ProcArrayStruct.  So, my
> code is iterating the whole PGPROC's array.  I reimplemented the new
> horizon calculation function in the core with usage of
> ProcArrayStruct.  Now it doesn't fall for me.  Please, recheck.

Yes, v4 works for me as well (thousands of iterations passed).
Thank you!

Though the test passes even without manipulations with the PROC_IN_VACUUM
flag in pg_visibility.c (maybe the test is not good enough to show why
those manipulations are needed).
I also couldn't see where VISHORIZON_DATA_STRICT comes into play...

Best regards,
Alexander



pgsql-hackers by date:

Previous
From: zhihuifan1213@163.com
Date:
Subject: Re: Avoid detoast overhead when possible
Next
From: Krishnakumar R
Date:
Subject: Move bki file pre-processing from initdb - part 1 - initdb->genbki.pl