Re: Use local buffer for packed numerics

From: Andrei Lepikhov <lepihov(at)gmail(dot)com>
To: David Geier <geidav(dot)pg(at)gmail(dot)com>, Josh Hurst <joshhurst77(at)gmail(dot)com>, chenhuimo(dot)mch(at)qq(dot)com
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, "andreas(at)proxel(dot)se" <andreas(at)proxel(dot)se>
Subject: Re: Use local buffer for packed numerics
Date: 2026-12-03 12:09:49
Message-ID: 02acb8f5-2554-4133-9f06-93920330b065@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 03/12/2026 12:38, David Geier wrote:
> Beyond that we should settle on a common benchmark. If the benchmark is
> not specific enough for some of the optimizations, we can extend it or
> at least use it for showing there are no regressions. I attached the
> latest version of my NUMERIC benchmark. I extended it to also cover
> special NUMERICs and more functionality (hashing, in/out, ...).
I'd prefer to work and benchmark each piece separately. It is clear to me that
they address quite different use cases. For example, aggregate improvement
compacts the “fast path” transition state from 256 bytes to 64 and improves
execution time mostly by reducing memory consumption. EQ/NEQ feature is all
about CPU cycles.

Also, each feature has its own regressions. By pointing the benchmark to these
regressions, we would better understand their value.

What's more, it is also clear that each feature might be extended to other
variable-length types with varying efficacy. So, concentration on one piece at a
time might reveal these benefits.

--
regards, Andrei Lepikhov,
pgEdge

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2026-12-03 12:12:59 Re: DROP SUBSCRIPTION deadlock with ALTER SUBSCRIPTION OWNER TO
Previous Message Shlok Kyal 2026-12-03 11:59:59 Re: DROP SUBSCRIPTION deadlock with ALTER SUBSCRIPTION OWNER TO