pgsql: Add new pg_walsummary tool.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add new pg_walsummary tool.
Date: 2024-01-11 17:56:36
Message-ID: E1rNzIC-000wgt-4t@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Add new pg_walsummary tool.

This can dump the contents of the WAL summary files found in
pg_wal/summaries. Normally, this shouldn't really be something anyone
needs to do, but it may be needed for debugging problems with
incremental backup, or could possibly be useful to external tools.

Discussion: http://postgr.es/m/CA+Tgmobvqqj-DW9F7uUzT-cQqs6wcVb-Xhs=w=hzJnXSE-kRGw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ee1bfd168390bc843c6704d16e909692c0a79f27

Modified Files
--------------
doc/src/sgml/ref/allfiles.sgml | 1 +
doc/src/sgml/ref/pg_walsummary.sgml | 122 +++++++++++++++
doc/src/sgml/reference.sgml | 1 +
src/bin/Makefile | 1 +
src/bin/meson.build | 1 +
src/bin/pg_walsummary/.gitignore | 1 +
src/bin/pg_walsummary/Makefile | 48 ++++++
src/bin/pg_walsummary/meson.build | 30 ++++
src/bin/pg_walsummary/nls.mk | 6 +
src/bin/pg_walsummary/pg_walsummary.c | 280 ++++++++++++++++++++++++++++++++++
src/bin/pg_walsummary/t/001_basic.pl | 19 +++
src/bin/pg_walsummary/t/002_blocks.pl | 88 +++++++++++
src/tools/pgindent/typedefs.list | 2 +
13 files changed, 600 insertions(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2024-01-11 18:11:36 pgsql: Repair various defects in dc212340058b4e7ecfc5a7a81ec50e7a207bf2
Previous Message Robert Haas 2024-01-11 17:46:46 pgsql: Add new function pg_get_wal_summarizer_state().

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-01-11 18:13:24 Re: cleanup patches for incremental backup
Previous Message Xiaoran Wang 2024-01-11 17:52:21 Re: Recovering from detoast-related catcache invalidations