static tracepoints in pgstat_report_wait_start/end

Started by Jeremy Schneider11 months ago2 messageshackers

Thread notes

1 note#feature#moderate#enhancement
hackorum-bot#feature#moderate#enhancement
hackorum-bot
1 day ago

@global #feature #moderate #enhancement

#feature#moderate#enhancement
Jump to latest
#1Jeremy Schneider
schneider@ardentperf.com

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.

#2Frits Hoogland
frits.hoogland@gmail.com
In reply to: Jeremy Schneider (#1)
Re: static tracepoints in pgstat_report_wait_start/end

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

Show quoted text

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.