Skip to content

Conversation

@hlinnaka
Copy link
Contributor

Move the responsibility of writing the SLRU segment contents to the neon extension. The neon extension hook now downloads the file and places it to the correct path, and returns a true/false to the caller to indicate if the file existed. On successful download, the caller retries opening the file.

Move the responsibility of writing the SLRU segment contents to the
neon extension. The neon extension hook now downloads the file and
places it to the correct path, and returns a true/false to the caller
to indicate if the file existed. On successful download, the caller
retries opening the file.

While we're at it, refactor the read_slru_segment function so that it
is not part of the SMGR api anymore, but an independent hook. We were
previously pretending it's part of the SMGR api and because of that,
passed a dummy SMgrRelation, but it was a bit silly.
@hlinnaka hlinnaka force-pushed the heikki/ondemand-slru-download-api-change-v15 branch from 6d0324a to db8a674 Compare August 6, 2025 18:00
@hlinnaka hlinnaka merged commit db8a674 into REL_15_STABLE_neon Aug 6, 2025
1 of 2 checks passed
@hlinnaka hlinnaka deleted the heikki/ondemand-slru-download-api-change-v15 branch August 6, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants