Re: Bug in amcheck?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: Peter Geoghegan <pg(at)bowt(dot)ie>, Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com>, Konstantin Knizhnik <knizhnik(at)garret(dot)ru>, aekorotkov(at)gmail(dot)com, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Bug in amcheck?
Date: 2026-01-03 02:40:23
Message-ID: 307198.1767408023@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas <hlinnaka(at)iki(dot)fi> writes:
> On 02/12/2025 19:59, Peter Geoghegan wrote:
>> These tests will increase nbtree code coverage quite a bit, which is a
>> nice bonus.

> Committed, thanks for the review!

In the past couple of days, scorpion and skink have failed
the nbtree_half_dead_pages test with identical symptoms [1][2]:

@@ -41,8 +41,6 @@
(1 row)

vacuum nbtree_half_dead_pages;
-ERROR: error triggered for injection point nbtree-leave-page-half-dead
-CONTEXT: while vacuuming index "nbtree_half_dead_pages_id_idx" of relation "public.nbtree_half_dead_pages"
SELECT injection_points_detach('nbtree-leave-page-half-dead');
injection_points_detach
-------------------------
@@ -67,7 +65,6 @@

-- Finish the deletion and re-check
vacuum nbtree_half_dead_pages;
-NOTICE: notice triggered for injection point nbtree-finish-half-dead-page-vacuum
select * from nbtree_half_dead_pages where id > 99998 and id < 120002;
id
--------

No idea why it took a month for this to show up. Could some
recent change have affected it?

regards, tom lane

[1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=scorpion&dt=2026-01-02%2004%3A54%3A38
[2] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=skink&dt=2025-12-31%2003%3A34%3A51

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message zengman 2026-01-03 03:05:24 Re: Speed up ICU case conversion by using ucasemap_utf8To*()
Previous Message Andreas Karlsson 2026-01-03 02:29:32 Re: improve comments on CreateFunction returnsSet