Re: [BUG] false positive in bt_index_check in case of short 4B varlena datum - Mailing list pgsql-bugs

From Andrey Borodin
Subject Re: [BUG] false positive in bt_index_check in case of short 4B varlena datum
Date
Msg-id 13F0EC76-00B9-41D7-8EC3-D1F07FF7C66B@yandex-team.ru
Whole thread
In response to Re: [BUG] false positive in bt_index_check in case of short 4B varlena datum  (Alexander Korotkov <aekorotkov@gmail.com>)
List pgsql-bugs

> On 4 May 2026, at 00:44, Alexander Korotkov <aekorotkov@gmail.com> wrote:
> 
> AFAICS, this is correct.  However, I propose an alternative approach:
> use VARSIZE_ANY().  This might be a bit slower, but looks more
> intuitive to me.
Works for me.
However, I'd like to note that (VARSIZE_1B() < TOAST_INDEX_TARGET) is
constantly true for 8Kb+ pages.


Best regards, Andrey Borodin.



pgsql-bugs by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: [BUG] false positive in bt_index_check in case of short 4B varlena datum