-
Notifications
You must be signed in to change notification settings - Fork 23
Add --save-records option to pg_waldump #572
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
Conversation
hlinnaka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a brief comment explaining the file format
Done |
problame
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't judge the C code, but, as someone who has been commanding the incident during which this was developed: it was a helpful tool.
Would be nice to have a tiny test for this feature so it doesn't bit-rot.
Ideally we'd test that this tool can be used instead of get_values_reconstruct_data in the pageserver / that they always return both results.
Realistically, let's just have a tiny test that points the tool to some Safekeeper WAL and verify that
- the exit status is 0 when invoked for some page / LSN range
- when piping generated wal stream into walredo process, we get the same page image that we get from the pageserver (use this testing API to get the page image that pageserver returns)
d7514ab to
e5fcb13
Compare
Co-authored-by: Heikki Linnakangas <heikki@neon.tech>
## Problem Make it possible to dump WAL records in format recognised by walredo process. Intended usage: ``` pg_waldump -R 1663/5/16396 -B 771727 000000010000000100000034 --save-records=/tmp/walredo.records postgres --wal-redo < /tmp/walredo.records > /tmp/page.img ``` ## Summary of changes Related Postgres PRs: neondatabase/postgres#575 neondatabase/postgres#572 --------- Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
Make it possible to dump WAL records in format recognised by walredo process.
Intended usage: