Re: Fix gistkillitems & add regression test to microvacuum - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: Fix gistkillitems & add regression test to microvacuum
Date
Msg-id 14B4E29D-7B08-4972-BE9E-491A8A6A77CF@yandex-team.ru
Whole thread Raw
In response to Re: Fix gistkillitems & add regression test to microvacuum  (Kirill Reshke <reshkekirill@gmail.com>)
List pgsql-hackers

> On 23 Jan 2026, at 16:03, Kirill Reshke <reshkekirill@gmail.com> wrote:
>
> On Tue, 20 Jan 2026 at 15:30, Andrey Borodin <x4mmm@yandex-team.ru> wrote:
>>
>>
>>
>>> On 15 Jan 2026, at 22:59, Kirill Reshke <reshkekirill@gmail.com> wrote:
>>>
>>> PFA v2 which leaves the test in-place.
>>>
>>> Also commit message improvements.
>>
>> Yeah, killtuples for GiST root page is broken. Your patch is fixing it.
>> I don't think we should backpatch this, the bug is harmless, but for master the patch LGTM.
>
> Thank you
>
>> It would be good to assign so->curBlkno and so->curBlkno together. But gistScanPage() is the only place with access
tothe block number. 
>
> Sorry, didnt get this take.

Sorry, I meant so->curBlkno and so->numKilled are semantically correlated. But it's difficult to assign them together
andthis does not worth refactoring. 

>
>> +# Test gist, but with fewer rows - that killitems used to be buggy.
>>
>> Probably, in this comment we can explicitly say that killitems was buggy, but now is fixed.
>>
>
> Hmm, what would be a good wording here?

I've opened an English dictionary and it says "used to" can be used with a meaning "bug was there but it's not
anymore".

So the patch is RfC IMO.


Best regards, Andrey Borodin.


pgsql-hackers by date:

Previous
From: Xuneng Zhou
Date:
Subject: Add pg_stat_recovery system view
Next
From: Chao Li
Date:
Subject: Re: Safer hash table initialization macro