Add bt_multi_page_stats() function to contrib/pageinspect.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Jan 2023 18:02:29 +0000 (13:02 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Jan 2023 18:02:29 +0000 (13:02 -0500)
commit1fd3dd2048991a164c287dc29fdb78b1f7e6e14e
tree1f5da7c575cfef42ff5bb9135517f58189ad032e
parente351f85418313e97c203c73181757a007dfda6d0
Add bt_multi_page_stats() function to contrib/pageinspect.

This is like the existing bt_page_stats() function, but it can
report on a range of pages rather than just one at a time.

I don't have a huge amount of faith in the portability of the
new test cases, but they do pass in a 32-bit FreeBSD VM here.
Further adjustment may be needed depending on buildfarm results.

Hamid Akhtar, reviewed by Naeem Akhter, Bertrand Drouvot,
Bharath Rupireddy, and myself

Discussion: https://postgr.es/m/CANugjht-=oGMRmNJKMqnBC69y7vr+wHDmm0ZK6-1pJsxoBKBbA@mail.gmail.com
contrib/pageinspect/Makefile
contrib/pageinspect/btreefuncs.c
contrib/pageinspect/expected/btree.out
contrib/pageinspect/meson.build
contrib/pageinspect/pageinspect--1.11--1.12.sql [new file with mode: 0644]
contrib/pageinspect/pageinspect.control
contrib/pageinspect/sql/btree.sql
doc/src/sgml/pageinspect.sgml