Add new function pg_get_wal_summarizer_state().
authorRobert Haas <rhaas@postgresql.org>
Thu, 11 Jan 2024 17:41:18 +0000 (12:41 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 11 Jan 2024 17:41:18 +0000 (12:41 -0500)
commitd9ef650fca7bc574586f4171cd929cfd5240326e
treef855558ef73e86522b3859fa8ad4bc3fd005a38f
parent544bcb5a5e778e8ef8d784de611c5f85bc33433c
Add new function pg_get_wal_summarizer_state().

This makes it possible to access information about the progress
of WAL summarization from SQL. The previously-added functions
pg_available_wal_summaries() and pg_wal_summary_contents() only
examine on-disk state, but this function exposes information from
the server's shared memory.

Discussion: http://postgr.es/m/CA+Tgmobvqqj-DW9F7uUzT-cQqs6wcVb-Xhs=w=hzJnXSE-kRGw@mail.gmail.com
doc/src/sgml/func.sgml
src/backend/backup/walsummaryfuncs.c
src/backend/postmaster/walsummarizer.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/postmaster/walsummarizer.h