| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add a test for half-dead pages in B-tree indexes |
| Date: | 2025-12-02 19:27:03 |
| Message-ID: | E1vQW1e-002Tc2-2F@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Add a test for half-dead pages in B-tree indexes
To increase our test coverage in general, and because I will use this
in the next commit to test a bug we currently have in amcheck.
Reviewed-by: Peter Geoghegan <pg(at)bowt(dot)ie>
Discussion: https://www.postgresql.org/message-id/33e39552-6a2a-46f3-8b34-3f9f8004451f@garret.ru
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c085aab2781989f487364fab2978d9ee791559a4
Modified Files
--------------
src/backend/access/nbtree/nbtpage.c | 7 +++
.../nbtree/expected/nbtree_half_dead_pages.out | 71 ++++++++++++++++++++++
src/test/modules/nbtree/meson.build | 1 +
.../modules/nbtree/sql/nbtree_half_dead_pages.sql | 43 +++++++++++++
4 files changed, 122 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nathan Bossart | 2025-12-02 22:40:48 | pgsql: Use LW_SHARED in dsa.c where possible. |
| Previous Message | Nathan Bossart | 2025-12-02 16:31:25 | pgsql: Show size of DSAs and dshashes in pg_dsm_registry_allocations. |