Add bt_multi_page_stats() function to contrib/pageinspect.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pageinspect/btreefuncs.c | modified | +225 −73 |
| contrib/pageinspect/expected/btree.out | modified | +117 −4 |
| contrib/pageinspect/Makefile | modified | +1 −1 |
| contrib/pageinspect/meson.build | modified | +1 −0 |
| contrib/pageinspect/pageinspect--1.11--1.12.sql | added | +23 −0 |
| contrib/pageinspect/pageinspect.control | modified | +1 −1 |
| contrib/pageinspect/sql/btree.sql | modified | +11 −0 |
| doc/src/sgml/pageinspect.sgml | modified | +49 −1 |
Documentation touched
Discussion
- Allow pageinspect's bt_page_stats function to return a set of rows instead of a single row 25 messages · 2022-06-27 → 2023-01-02