# pg_wait_tracer Page: https://stenobird.com/podcast/postgres-fm-5565051/pg-wait-tracer Text version: https://stenobird.com/podcast/postgres-fm-5565051/pg-wait-tracer.md Podcast: [Postgres FM](https://stenobird.com/podcast/postgres-fm-5565051) Published: 2026-04-24T13:00:00+00:00 Episode link: https://share.transistor.fm/s/6efcd68c Audio file: https://media.transistor.fm/6efcd68c/8d432d3d.mp3 Processing state: not_requested JSON: https://stenobird.com/v1/public/podcasts/postgres-fm-5565051/episodes/pg-wait-tracer Duration seconds: 2665 ## Resource Nik and Michael are joined by Dmitry Fomin to discuss his new tool pg_wait_tracer, as well as changes that could be made to core to allow wait event tracing with lower overhead, and on managed services. Here are some links to things they mentioned: Dmitry Fomin https://postgres.fm/people/dmitry-fomin pg_wait_tracer https://github.com/DmitryNFomin/pg_wait_tracer pg_wait_sampling https://github.com/postgrespro/pg_wait_sampling pg_10046 https://github.com/DmitryNFomin/pg_10046 Jeremy Schneider reply on LinkedIn https://www.linkedin.com/feed/update/urn:li:activity:7414966981847748608 RDS for PostgreSQL wait event docs https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Tuning.concepts.summary.html Custom wait events for extensions (added in PostgreSQL 17) https://www.postgresql.org/docs/current/xfunc-c.html#XFUNC-ADDIN-WAIT-EVENTS Hacking Postgres with Dmitry, Kirk, and Nik (Part 1) https://www.youtube.com/watch?v=3Gtuc2lnnsE Hacking Postgres with Dmitry, Kirk, and Nik (Part 2) https://www.youtube.com/watch?v=6kqpjnpl5Gc Tanel Poder https://tanelpoder.com/about/ USDT static tracepoints for wait event tracing (proof of concept by Nik) https://github.com/NikolayS/postgres/pull/18 Add wait_event_timing: Oracle-style wait event instrumentation (patch by Dmitry) https://github.com/DmitryNFomin/postgres/pull/1 PgQue benchmarks https://github.com/NikolayS/pgque/blob/main/docs/benchmarks.md The Art of Computer Systems Performance Analysis Techniques for Experimental Design, Measurement, Simulation and Modeling (by Raj K. Jain) https://www.researchgate.net/publication/259310412_The_Art_of_Computer_Systems_Performance_Analysis_Techniques_For_Experimental_Design_Measurement_Simulation_and_Modeling_NY_Wiley Performance modeling and design of computer systems queueing the… ## Actions - request_transcript: `POST https://stenobird.com/v1/public/podcasts/postgres-fm-5565051/episodes/pg-wait-tracer/transcription-requests` — Idempotently request low-priority transcript generation for this episode. - read_markdown: `GET https://stenobird.com/podcast/postgres-fm-5565051/pg-wait-tracer.md` — Read the agent-friendly Markdown representation of this episode resource. A page view does not enqueue transcription. Agents should invoke `request_transcript` explicitly when they need this episode processed. ## Transcript Full transcripts are not published on public pages unless there is a clear rights basis.