Add more information for WAL records of hash index AMs
authorMichael Paquier <michael@paquier.xyz>
Fri, 12 Sep 2025 01:29:02 +0000 (10:29 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 12 Sep 2025 01:29:02 +0000 (10:29 +0900)
commit528dadf691df3023fbb0bd71da5c6087c2d49d6a
treea042356a469a725326a0825ab5a3fb29e40c8428
parent306dd13079ed616c414c9411c5deadffea273266
Add more information for WAL records of hash index AMs

hashdesc.c was missing a couple of fields in its record descriptions, as
of:
- is_prev_bucket_same_wrt for SQUEEZE_PAGE.
- procid for INIT_META_PAGE.
- old_bucket_flag and new_bucket_flag for SPLIT_ALLOCATE_PAGE.

The author has noted the first hole, and I have spotted the others while
double-checking this area of the code.  Note that the only data missing
now are the offsets stored in VACUUM_ONE_PAGE.  We could perhaps add
them, if somebody sees value in this data, even if it makes the output
larger.  These are discarded here.

Author: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://postgr.es/m/CALdSSPjc-OVwtZH0Xrkvg7n=2ZwdbMJzqrm_ed_CfjiAzuKVGg@mail.gmail.com
src/backend/access/rmgrdesc/hashdesc.c