> On 4 May 2026, at 00:44, Alexander Korotkov <aekorotkov(at)gmail(dot)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.