Re: [Benchmarking basics] Do performance patches target specific OSes/hardware?

From: abhinav omprakash <abhinav(dot)omprakash10(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: [Benchmarking basics] Do performance patches target specific OSes/hardware?
Date: 2026-11-27 06:02:27
Message-ID: CANoLJ79n2K44TddNBQyyj9MeX6+cyQJnM=GVHwZif2r4ucvkjg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Thanks for the reply. The links are good rabbit holes to go down.

On Thu, Nov 26, 2026 at 11:03 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> abhinav omprakash <abhinav(dot)omprakash10(at)gmail(dot)com> writes:
> > When someone is working on a performance patch, do they target
> > a specific OS and hardware? Is this up to the user or is there a specific
> > one the postgresql developer group prescribes?
>
> I think most of the performance work that gets done around here is
> platform-independent. We do sometimes worry about whether code is
> amenable to auto-vectorization (for instance [1]), but that helps
> on multiple platforms and typically doesn't hurt anywhere.
>
> People do sometimes make platform-specific performance improvements,
> such as [2]. We don't want to clutter our tree with too much
> platform-specific code, and there's an expectation that you don't
> make things worse for other platforms. But it does happen, and
> there's not really any restrictions on what to target; you just
> have to convince people that whatever-it-is is worth the trouble.
> Marginal improvements are probably not going to get enough
> attention to get committed.
>
> (This is all just MHO, not any sort of project policy.)
>
> regards, tom lane
>
> [1]
> https://git.postgresql.org/gitweb/?a=commitdiff&h=158b6d510&p=postgresql.git
> [2]
> https://git.postgresql.org/gitweb/?a=commitdiff&h=3d0b4b106&p=postgresql.git
>

--
abhinav

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Stepan Neretin 2026-11-29 09:18:59 Re: [PATCH] ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized
Previous Message Tom Lane 2026-11-26 21:03:23 Re: [Benchmarking basics] Do performance patches target specific OSes/hardware?