Обсуждение: pgsql: Show more detail in heapam rmgr descriptions.

Поиск
Список
Период
Сортировка

pgsql: Show more detail in heapam rmgr descriptions.

От
Peter Geoghegan
Дата:
Show more detail in heapam rmgr descriptions.

Add helper functions that output arrays in a standard format, and use
the functions inside heapdesc routines.  This allows tools like
pg_walinspect to show a detailed description of the page offset number
arrays for records like PRUNE and VACUUM (unless there was an FPI).

Also document the conventions that desc routines should follow.  Only
the heapdesc routines follow the conventions for now, so they're just
guidelines for the time being.

Based on a suggestion from Andres Freund.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-By: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/flat/20230109215842.fktuhesvayno6o4g%40awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7d8219a444bd917d21234c97e2417a410f10ebd3

Modified Files
--------------
doc/src/sgml/pgwalinspect.sgml               |  22 ++--
src/backend/access/rmgrdesc/Makefile         |   1 +
src/backend/access/rmgrdesc/heapdesc.c       | 155 ++++++++++++++++++++++-----
src/backend/access/rmgrdesc/meson.build      |   1 +
src/backend/access/rmgrdesc/rmgrdesc_utils.c |  84 +++++++++++++++
src/bin/pg_waldump/Makefile                  |   2 +-
src/include/access/rmgrdesc_utils.h          |  22 ++++
7 files changed, 247 insertions(+), 40 deletions(-)