Re: static tracepoints in pgstat_report_wait_start/end - Mailing list pgsql-hackers

From Frits Hoogland
Subject Re: static tracepoints in pgstat_report_wait_start/end
Date
Msg-id 8C41E326-3CCE-4B08-ADC7-0FFF514DB538@gmail.com
Whole thread Raw
In response to static tracepoints in pgstat_report_wait_start/end  (Jeremy Schneider <schneider@ardentperf.com>)
List 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@ardentperf.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.




pgsql-hackers by date:

Previous
From: Nitin Motiani
Date:
Subject: Re: Adding pg_dump flag for parallel export to pipes
Next
From: Vaibhav Dalvi
Date:
Subject: Re: finish TODOs in to_json_is_immutable, to_jsonb_is_immutable also add tests on it