Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?

From: Lukas Fittl <lukas(at)fittl(dot)com>
To: David Geier <geidav(dot)pg(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>
Cc: Hannu Krosing <hannuk(at)google(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>, Maciek Sakrejda <m(dot)sakrejda(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?
Date: 2026-02-01 03:14:56
Message-ID: CAP53PkxaDpPCbXeA=OpmY4DUxBVHzgivXzpA62_tRE62xfc9nA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jan 31, 2026 at 12:11 PM Lukas Fittl <lukas(at)fittl(dot)com> wrote:
> I've reworked the patch a bit more, see attached v4

And of course, I took the wrong branch when running "git format-patch"
- apologies.

See attached v5.

Thanks,
Lukas

--
Lukas Fittl

Attachment Content-Type Size
v5-0001-Check-for-HAVE__CPUIDEX-and-HAVE__GET_CPUID_COUNT.patch application/x-patch 6.6 KB
v5-0002-Use-time-stamp-counter-to-measure-time-on-Linux-x.patch application/x-patch 20.7 KB
v5-0003-pg_test_timing-Also-test-fast-timing-and-report-t.patch application/x-patch 8.2 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2026-02-01 05:09:25 Re: slow SELECT expr INTO var in plpgsql
Previous Message Jim Jones 2026-02-01 00:08:31 Re: Additional message in pg_terminate_backend