A query plan tells you what PostgreSQL intended to do. A wait event tells you what it actually did with its time. Most performance work we see in production starts one layer too high, in the EXPLAIN output, when the cheaper answer is already sitting in pg_stat_activity.
Read more: https://stormatics.tech/blogs/understanding-wait-events-in-postgresql
Top comments (0)