Revert "Add HINT for restartpoint race with KeepFileRestoredFromArchive()."
authorMichael Paquier <[email protected]>
Sun, 6 Apr 2025 06:14:52 +0000 (15:14 +0900)
committerMichael Paquier <[email protected]>
Sun, 6 Apr 2025 06:14:52 +0000 (15:14 +0900)
commit47d2d29827293ed46f3641d8843ce5b5823d26e4
tree28e217955810360fff3f8ac42302b7015ba15b13
parentb494640e8297db8b626d8ffa775cb491f7d2e7e2
Revert "Add HINT for restartpoint race with KeepFileRestoredFromArchive()."

This reverts commit 8ad6c5dbbe5a, which was a commit specific to v14 and
older branches as the race condition between restartpoints and
KeepFileRestoredFromArchive() still existed.

1f95181b44c8 has worsened the situation on these two branches, causing
spurious failures in archive recovery (neither streaming nor archive
recovery) with concurrent restartpoints.  The same logic as v15 and
newer versions will be applied in some follow-up commits to close this
problem, making this HINT not necessary anymore.

Reported-by: Arun Thirupathi
Discussion: https://postgr.es/m/20250306193013[email protected]
Backpatch-through: 13
src/backend/access/transam/xlog.c
src/backend/storage/file/fd.c