Show more detail in heapam rmgr descriptions.
authorPeter Geoghegan <[email protected]>
Fri, 7 Apr 2023 23:08:52 +0000 (16:08 -0700)
committerPeter Geoghegan <[email protected]>
Fri, 7 Apr 2023 23:08:52 +0000 (16:08 -0700)
commit7d8219a444bd917d21234c97e2417a410f10ebd3
treea4bf646294fb51f5bef2d7595dafab66a0fe9e2c
parent76c111a7f16659f9018391f655764c8226461ca4
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 <[email protected]>
Reviewed-By: Peter Geoghegan <[email protected]>
Discussion: https://postgr.es/m/flat/20230109215842.fktuhesvayno6o4g%40awork3.anarazel.de
doc/src/sgml/pgwalinspect.sgml
src/backend/access/rmgrdesc/Makefile
src/backend/access/rmgrdesc/heapdesc.c
src/backend/access/rmgrdesc/meson.build
src/backend/access/rmgrdesc/rmgrdesc_utils.c [new file with mode: 0644]
src/bin/pg_waldump/Makefile
src/include/access/rmgrdesc_utils.h [new file with mode: 0644]