1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Use streaming read I/O in heap amcheck

Instead of directly invoking ReadBuffer() for each unskippable block in
the heap relation, verify_heapam() now uses the read stream API to
acquire the next buffer to check for corruption.

Author: Matheus Alcantara <matheusssilv97@gmail.com>
Co-authored-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: jian he <jian.universality@gmail.com>
Discussion: https://postgr.es/m/flat/CAFY6G8eLyz7%2BsccegZYFj%3D5tAUR-GZ9uEq4Ch5gvwKqUwb_hCA%40mail.gmail.com
This commit is contained in:
Melanie Plageman
2025-03-27 14:02:40 -04:00
parent 4623d71443
commit 043799fa08
2 changed files with 109 additions and 25 deletions

View File

@ -1169,6 +1169,7 @@ HeadlineJsonState
HeadlineParsedText
HeadlineWordEntry
HeapCheckContext
HeapCheckReadStreamData
HeapPageFreeze
HeapScanDesc
HeapTuple