Re: collect_corrupt_items_vacuum.patch
Alexander Law <exclusion@gmail.com>
From: Alexander Lakhin <exclusion@gmail.com>
To: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Daniel Gustafsson <daniel@yesql.se>,
Daniel Shelepanov <deniel1495@mail.ru>, Nikita Malakhov <hukutoc@gmail.com>,
Michael Paquier <michael@paquier.xyz>, Robert Haas <robertmhaas@gmail.com>,
Tom Lane <tgl@sss.pgh.pa.us>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Andres Freund <andres@anarazel.de>
Date: 2023-12-04T10:00:00Z
Lists: 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
Commits
-
Fix GetStrictOldestNonRemovableTransactionId() on standby
- e2ed7e32271a 18.0 landed
-
Fix typo in GetRunningTransactionData()
- 619f76cce11d 17.0 landed
- 6c1af5482e69 18.0 landed
-
Optimize memory access in GetRunningTransactionData()
- 6897f0ec0245 18.0 landed
-
Fix false reports in pg_visibility
- e85662df44ff 17.0 landed
-
Fix indentation
- 4d0cf0b05def 17.0 cited