pgsql: Show more detail in heapam rmgr descriptions.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Show more detail in heapam rmgr descriptions.
Date: 2023-04-07 23:09:15
Message-ID: E1pkvCj-001w5Y-R3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Reviewed-By: Peter Geoghegan <pg(at)bowt(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2023-04-07 23:37:55 pgsql: For Kerberos testing, disable DNS lookups
Previous Message Tom Lane 2023-04-07 22:17:27 pgsql: Adjust contrib/sepgsql regression test expected outputs.