← 返回命令列表

Linux command

pg_walsummary 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Show WAL summary

pg_walsummary [summary_file]

Show with individual block detail

pg_walsummary -i [summary_file]

Validate a WAL summary file without printing contents

pg_walsummary -q [summary_file]

说明

pg_walsummary prints the contents of WAL summary files. These binary files are found in the pg_wal/summaries subdirectory of the data directory and track which blocks were modified, supporting the incremental backup feature introduced in PostgreSQL 17.

参数

-i, --individual
Print a separate line for every modified block instead of consolidating consecutive blocks into ranges.
-q, --quiet
Do not print any output, except for errors. Useful for validating that a file can be parsed.
-V, --version
Display version information, then exit.

FAQ

What is the pg_walsummary command used for?

pg_walsummary prints the contents of WAL summary files. These binary files are found in the pg_wal/summaries subdirectory of the data directory and track which blocks were modified, supporting the incremental backup feature introduced in PostgreSQL 17.

How do I run a basic pg_walsummary example?

Run `pg_walsummary [summary_file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --individual do in pg_walsummary?

Print a separate line for every modified block instead of consolidating consecutive blocks into ranges.