Re: Use local buffer for packed numerics

From: Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>
To: Andrei Lepikhov <lepihov(at)gmail(dot)com>
Cc: David Geier <geidav(dot)pg(at)gmail(dot)com>, Josh Hurst <joshhurst77(at)gmail(dot)com>, chenhuimo(dot)mch(at)qq(dot)com, 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 14:43:57
Message-ID: CAEze2WgXkW72t9gdQ5VWPBCm91Atcd-sWNBNCcMBn0E526YRMw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 3 Dec 2026 at 14:08, Andrei Lepikhov <lepihov(at)gmail(dot)com> wrote:
>
> On 03/12/2026 13:20, David Geier wrote:
> > A targeted benchmark tells us whether an optimization helps its
> > intended workload. It does not tell us what it costs elsewhere.
>
> I definitely disagree here. A targeted benchmark must expose all theoretically
> possible regressions.

Producing a set of benchmarks that shows all theoretically possible
regressions might mean you'd first have to solve the halting problem,
because IIUC there are arbitrarily many things that could regress from
such a base component's code changes. E.g. increasing code size will
increase instruction cache usage by numeric-related code, which will
decrease the amount of other system's code in caches, and this will
affect any number of mixed workloads in various ways. That impact is
further influenced by the CPU's architecture, memory latencies, etc.

Expecting someone to enumerate all workloads that might be affected by
a patch, together with that patch's effect on those workloads, is an
impossibly high standard. Feel free to ask for it, but don't expect
it, and definitely don't require it.

Kind regards,

Matthias van de Meent
Databricks (https://www.databricks.com)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-12-03 14:49:14 Re: several cases of float and integer mixup
Previous Message Chengpeng Yan 2026-12-03 14:38:53 Re: [PATCH] Avoid copying tuples that a bounded sort will discard