Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed LastWrittenLSN code and added hooks for the removed functions - v17 #590

Open
wants to merge 3 commits into
base: REL_17_STABLE_neon
Choose a base branch
from

Conversation

thesuhas
Copy link

Removing the LastWrittenLSN code from Postgres v17 as part of moving it into the neon extension to reduce code duplication.

Part of: neondatabase/neon#10973

@@ -4952,8 +4923,8 @@ XLOGCtlShmemSize(void)
Size
XLOGShmemSize(void)
{
return XLOGCtlShmemSize() +
hash_estimate_size(lastWrittenLsnCacheSize, sizeof(LastWrittenLsnCacheEntry));
// Removed LwLSN Size as it is no longer in XLog
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we remove the comment, is the function now the same as upstream postgres?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thesuhas thesuhas marked this pull request as ready for review February 28, 2025 22:51
@thesuhas thesuhas force-pushed the move_lwlsn_neon_ext branch from 5182ec3 to af7e7e9 Compare February 28, 2025 22:51
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.

Improvement: Move the last written LSN (LwLSN) cache into neon extension
2 participants