mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-28 00:23:00 +00:00
Seems handy for getting a quick idea of what's stored in an
image or delta layer file.
Example output on a file after runnnig pgbench for a while:
% ./target/debug/dump_layerfile pgbench_layers/pg_control_checkpoint_0_00000000016B914A
----- image layer for checkpoint.0 at 0/16B914A ----
non-blocky (88 bytes)
% ./target/debug/dump_layerfile pgbench_layers/pg_xact_0000_0_000000000412FD40
----- image layer for pg_xact/0000.0 at 0/412FD40 ----
(1) blocks
% ./target/debug/dump_layerfile pgbench_layers/rel_1663_14236_1247_0_0_00000000016B914A_000000000412FD40 | head -n 20
----- delta layer for 1663/14236/1247.0 0/16B914A-0/412FD40 ----
--- relsizes ---
0/16B914A: 14
0/16CA559: 15
--- page versions ---
blk 13 at 0/16BB1D2: rec 8162 bytes will_init: true HEAP INSERT
blk 14 at 0/16CA559: rec 8241 bytes will_init: true XLOG FPI
blk 14 at 0/16CA637: rec 215 bytes will_init: true HEAP INSERT
blk 14 at 0/16DF14F: rec 215 bytes will_init: false HEAP INSERT
blk 14 at 0/16DF3A7: rec 215 bytes will_init: false HEAP INSERT
blk 14 at 0/16E0637: rec 215 bytes will_init: false HEAP INSERT
blk 14 at 0/16E088F: rec 215 bytes will_init: false HEAP INSERT
blk 14 at 0/16E5F9F: rec 215 bytes will_init: false HEAP INSERT
blk 14 at 0/16E620F: rec 215 bytes will_init: false HEAP INSERT