Skip to content

Commit bb48994

Browse files
knizhnikMMeent
andauthored
Update src/backend/access/transam/xlog.c
Co-authored-by: Matthias van de Meent <[email protected]>
1 parent d7526ad commit bb48994

File tree

1 file changed

+3
-0
lines changed
  • src/backend/access/transam

1 file changed

+3
-0
lines changed

src/backend/access/transam/xlog.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6720,6 +6720,9 @@ GetLastWrittenLSN(RelFileLocator rlocator, ForkNumber forknum, BlockNumber blkno
67206720
* last-written-lsn which is changed frequently as far as we are writing pages of destination table.
67216721
* As a result request-lsn for the prefetch and request-let when this page is actually needed are different
67226722
* and we got exported prefetch request. So it actually disarms prefetch.
6723+
* To prevent that, we re-insert the page with the latest LSN, so that it's
6724+
* less likely the LSN for this page will get evicted from the LwLsnCache
6725+
* before the page is read.
67236726
*/
67246727
lsn = SetLastWrittenLSNForBlockRangeInternal(lsn, rlocator, forknum, blkno, 1);
67256728
}

0 commit comments

Comments
 (0)