Add data_page_checksum_version to pg_control_checkpoint Commit f19c0eccae added the data_checksum_version to the pg_controldata output, but omitted a corresponding change to the pg_control_checkpoint SQL function, which reports the same checkpoint information. The field is named to match what pg_control_init already reports for consistency.
The integer version reported is an implementation detail which bleeds through, but it is quite widely used and a more holistic approach to improving this is left as an excercise for the next major version. The mapping between states and versions is added to the documentation to make it easier for users. Backpatch to v19 where online checksums were introduced. Author: Ian Barwick <[email protected]> Co-authored-by: Daniel Gustafsson <[email protected]> Reviewed-by: Fujii Masao <[email protected]> Reviewed-by: Chao Li <[email protected]> Reviewed-by: Bertrand Drouvot <[email protected]> Discussion: https://postgr.es/m/CAB8KJ=hb765sE8bKC-6sh=yp3scjn8xs474yubrkwyotm2p...@mail.gmail.com Backpatch-through: 19 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ec4399642ae94f1ade0c1532fc67146f851c408c Modified Files -------------- doc/src/sgml/func/func-info.sgml | 5 +++ doc/src/sgml/wal.sgml | 45 +++++++++++++++++++++++- src/backend/utils/misc/pg_controldata.c | 9 +++-- src/include/catalog/catversion.h | 2 +- src/include/catalog/pg_proc.dat | 6 ++-- src/test/modules/test_checksums/t/001_basic.pl | 18 ++++++++++ src/test/modules/test_checksums/t/004_offline.pl | 12 +++++++ 7 files changed, 89 insertions(+), 8 deletions(-)
