Skip to content

feat: add functions mappins LSNs to WAL file names#65

Merged
leonardoce merged 1 commit intocloudnative-pg:mainfrom
leonardoce:walfile
Jan 9, 2025
Merged

feat: add functions mappins LSNs to WAL file names#65
leonardoce merged 1 commit intocloudnative-pg:mainfrom
leonardoce:walfile

Conversation

@leonardoce
Copy link
Copy Markdown
Contributor

No description provided.

@leonardoce leonardoce requested a review from a team as a code owner January 9, 2025 13:03
armru
armru previously approved these changes Jan 9, 2025
@leonardoce leonardoce changed the title feat: LSN to WAL file name feat: lsn to wal file name Jan 9, 2025
This patch adds a few useful functions to map LSN location to WAL
segment file names and vice-versa.

These functions would have definitely been more easily implemented if
the LSN type was implemented as an int64 but, unfortunately, that would
break the compatibility with CNPG.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@gmail.com>
@leonardoce leonardoce changed the title feat: lsn to wal file name feat: add functions mappins LSNs to WAL file names Jan 9, 2025
@leonardoce leonardoce merged commit a3f9167 into cloudnative-pg:main Jan 9, 2025
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.

2 participants