Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Lukas Fittl <lukas(at)fittl(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, David Geier <geidav(dot)pg(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>, Maciek Sakrejda <m(dot)sakrejda(at)gmail(dot)com>, Tomas Vondra <tomas(at)vondra(dot)me>
Subject: Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?
Date: 2025-07-28 06:38:20
Message-ID: aIca3DzuZt0Ac8SO@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Jul 27, 2025 at 12:50:54PM -0700, Lukas Fittl wrote:
> 0001 - Improve the __cpuidex check added for a different purpose
> in 792752af4eb5 to:
>
> - Fix a typo (configure was incorrectly checking for "__get_cpuidex", vs
> meson.build was doing it correctly)

It seems to me that this is an independent issue that had better be
backpatched down to where this configure check has been introduced,
no?

> - Adds support for non-MSVC compilers as well (e.g. GCC 11+), where
> __cpuidex is defined in cpuid.h, not intrin.h

This one should be a HEAD-only change.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2025-07-28 06:41:27 Re: [PATCH] avoid double scanning in function byteain
Previous Message Stepan Neretin 2025-07-28 06:28:35 Re: [PATCH] avoid double scanning in function byteain