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

Implement extraction of the header part of the data portion in WAL segments #300

Open
sh-soltanpour opened this issue May 21, 2024 · 0 comments
Assignees
Labels
feature New feature

Comments

@sh-soltanpour
Copy link
Contributor

Is your feature request related to a problem? Please describe.

As a part of #296, we need to parse the header part of data portion from the image below. To do this, we probably need to get some information from what we already have from XLogRecord (parsed in #299).

image source

Describe the solution you'd like

The header part contains zero or more XLogRecordBlockHeaders and zero or one XLogRecordDataHeaderShort (or XLogRecordDataHeaderLong). It must contain at least one of these.

The solution needs to understand the type structs used in the header part, and parse the page into the appropriate structs. Some records may be stored in multiple pages so the solution must be able to skip the pages with continuous data to reach the next header.

Additional information

Any additional information you can provide, like an overall design description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant