Re: static tracepoints in pgstat_report_wait_start/end

From: Frits Hoogland <frits(dot)hoogland(at)gmail(dot)com>
To: Jeremy Schneider <schneider(at)ardentperf(dot)com>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: static tracepoints in pgstat_report_wait_start/end
Date: 2026-01-13 10:59:39
Message-ID: 8C41E326-3CCE-4B08-ADC7-0FFF514DB538@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I found that the relevant functions that indicate the waits are optimized out when postgres is compiled.
And thus simply trying to use the functions that mark the start and end of a wait event cannot easily
be used.

But I am eager to see if anyone has come up with a solution to do this in a compiled and optimized
postgres version.

Frits Hoogland

> On 10 Jan 2026, at 05:22, Jeremy Schneider <schneider(at)ardentperf(dot)com> wrote:
>
> has anyone here tried static tracepoints inside
> pgstat_report_wait_start/end to enable tools like ebpf to do full
> tracing of wait events?
>
> -Jeremy
>
>
> --
> To know the thoughts and deeds that have marked man's progress is to
> feel the great heart throbs of humanity through the centuries; and if
> one does not feel in these pulsations a heavenward striving, one must
> indeed be deaf to the harmonies of life.
>
> Helen Keller, The Story Of My Life, 1902, 1903, 1905, introduction by
> Ralph Barton Perry (Garden City, NY: Doubleday & Company, 1954), p90.
>
>
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vaibhav Dalvi 2026-01-13 11:12:15 Re: finish TODOs in to_json_is_immutable, to_jsonb_is_immutable also add tests on it
Previous Message Nitin Motiani 2026-01-13 10:50:44 Re: Adding pg_dump flag for parallel export to pipes