Re: Use local buffer for packed numerics

From: David Geier <geidav(dot)pg(at)gmail(dot)com>
To: Andrei Lepikhov <lepihov(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andreas Karlsson <andreas(at)proxel(dot)se>
Subject: Re: Use local buffer for packed numerics
Date: 2026-11-24 14:41:06
Message-ID: fb229776-d377-4e59-a7fc-ab5d9daf5485@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> CFBot picked up your patch as the latest patch set for this CF entry [1], and it
> now fails on all platforms in the numeric regression test.
>
> The cause I hope is a slip in cmp_numerics(), in the PINF branch:
>
> - else if (var2.sign == NUMERIC_POS)
> + else if (var2.sign == NUMERIC_PINF)
> result = 0; /* PINF = PINF */
>
> To keep this entry focused on the local-buffer approach, I'm re-attaching my
> patches as v2. They're the same as v0, just rebased onto current master.
>
> Since the no-unpacking direction is a separate piece of work, could you name
> experimental patches in this thread with a .txt or .no-cfbot suffix, so CFBot
> doesn't pick them up?

Sorry for that. I hadn't realized there's already a commitfest entry.
Will do next time.

> If you plan to develop that idea further, it might be
> worth its own thread and CF entry - just add me in CC.

Will do and open a new thread for it.

--
David Geier

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrei Lepikhov 2026-11-24 14:46:38 Re: Numeric equality and hashing without detoasting
Previous Message Vedant Gharat 2026-11-24 14:39:43 Re: Check the fd number against FD_SETSIZE in PQsocketPoll