postgresql/src/bin
Michael Paquier d497093cbe pg_waldump: Add --save-fullpage=PATH to save full page images from WAL records
This option extracts (potentially decompressing) full-page images
included in WAL records into a given target directory.  These images are
subject to the same filtering rules as the normal display of the WAL
records, hence with --relation one can for example extract only the FPIs
issued on the relation defined.  By default, the records are printed or
their stats computed (--stats), using --quiet would only save the images
without any output generated.

This is a tool aimed mostly for very experienced users, useful for
fixing page-level corruption or just analyzing the past state of a page,
and there were no easy way to do that with the in-core tools up to now
when looking at WAL.

Each block is saved in a separate file, to ease their manipulation, with
the file respecting <lsn>.<ts>.<db>.<rel>.<blk>_<fork> with as format.

For instance, 00000000-010000C0.1663.1.6117.123_main refers to:
- WAL record LSN in hexa format (00000000-010000C0).
- Tablespace OID (1663).
- Database OID (1).
- Relfilenode (6117).
- Block number (123).
- Fork name of the file this block came from (_main).

Author: David Christensen
Reviewed-by: Sho Kato, Justin Pryzby, Bharath Rupireddy, Matthias van de
Meent
Discussion: https://postgr.es/m/CAOxo6XKjQb2bMSBRpePf3ZpzfNTwjQUc4Tafh21=jzjX6bX8CA@mail.gmail.com
2022-12-27 08:27:53 +09:00
..
initdb Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_amcheck Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_archivecleanup Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_basebackup Make more consistent some translated strings related to compression 2022-12-21 10:39:06 +09:00
pg_checksums Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_config Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_controldata Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_ctl Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_dump Make more consistent some translated strings related to compression 2022-12-21 10:39:06 +09:00
pg_resetwal Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_rewind Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_test_fsync Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_test_timing Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_upgrade Switch query fixing aclitems in ~15 from O(N^2) to O(N) in upgrade_adapt.sql 2022-12-26 08:00:55 +09:00
pg_verifybackup Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pg_waldump pg_waldump: Add --save-fullpage=PATH to save full page images from WAL records 2022-12-27 08:27:53 +09:00
pgbench Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
pgevent Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
psql Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
scripts Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00
meson.build Add copyright notices to meson files 2022-12-20 07:54:39 -05:00