Best Practices for Tuning Slow Postgres Queries | POSETTE: An Event for Postgres 2025

Video of a conference talk where Lukas Fittl walks through what he’s learned tuning slow Postgres queries over the years. He'll start with a quick recap of the basics (EXPLAIN ANALYZE) and then go through his iterative process of how he evaluates the root cause of a query's slowness. To help you identify root causes more effectively, he'll go through common pathological Postgres planner decisions that can make a query slower than it should be and discuss when you may want to use tools like pg_hint_plan to understand alternate query plans that are available but not chosen by Postgres. Lukas Fittl is Founder & CEO at pganalyze.com, hosted PostgreSQL Performance Monitoring, the author of pg_query (Ruby extension to parse queries using the raw_parser) and other tools. Lukas loves working with PostgreSQL statistics and visualizing them. ► Video bookmarks: ⏩ 00:10 Introduction - Best Practices for Tuning Slow Postgres Queries ⏩ 00:52 Debugging why a Query is Slow ⏩ 02:37 Benchmarking with EXPLAIN(ANALYZE, BUFFERS) ⏩ 05:41 Planner Costing & Why it Can Never be Perfect ⏩ 11:32 Join Order & Parameterized Index Scans ⏩ 19:30 Guiding the Planner to the Right Plan ⏩ 22:27 Conclusion 📕 Everything you need to know about POSETTE: An Event for Postgres 2025 can be found at: https://posetteconf.com ✅ Learn more: Watch more POSETTE talks: https://aka.ms/posette-playlist 📌 Let’s connect:   LinkedIn -   / posetteconf   X – @PosetteConf,   / posetteconf   Mastodon – @posetteconf, https://mastodon.social/@posetteconf Bluesky – @posetteconf.com, https://bsky.app/profile/posetteconf.com _________________________________ #PosetteConf #PostgreSQL #performance

PostgreSQL Internals in Action: MVCC
▶︎

PostgreSQL Internals in Action: MVCC

Building a PostgreSQL data warehouse | POSETTE: An Event for Postgres 2025
▶︎

Building a PostgreSQL data warehouse | POSETTE: An Event for Postgres 2025

Broken Object vs Function Level Authorization | Authorization Security for Developers Series Part 06
▶︎

Broken Object vs Function Level Authorization | Authorization Security for Developers Series Part 06

Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
▶︎

Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF

What Microsoft is Building for Postgres in 2025 | POSETTE: An Event for Postgres 2025
▶︎

What Microsoft is Building for Postgres in 2025 | POSETTE: An Event for Postgres 2025

Ex-Google Recruiter Explains Why "Lying" Gets You Hired
▶︎

Ex-Google Recruiter Explains Why "Lying" Gets You Hired

Agents That Talk Back: MCP, ACP, A2A, Oh my!   Taswar Bhatti   NDC Manchester 2025
▶︎

Agents That Talk Back: MCP, ACP, A2A, Oh my! Taswar Bhatti NDC Manchester 2025

DHH: Basecamp 5, Vibe Coding, and the Future of Rails
▶︎

DHH: Basecamp 5, Vibe Coding, and the Future of Rails

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker
▶︎

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

Scott and Mark learn...how agents reshape software engineering | BRK247
▶︎

Scott and Mark learn...how agents reshape software engineering | BRK247

Rural Countryside Field Path Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames
▶︎

Rural Countryside Field Path Oil Painting | 4K Vintage Wallpaper Art Screensaver | Vintage Frames

5 Secrets for making PostgreSQL run BLAZING FAST. How to improve database performance.
▶︎

5 Secrets for making PostgreSQL run BLAZING FAST. How to improve database performance.

Something is jamming GPS over Europe. Here's what we found
▶︎

Something is jamming GPS over Europe. Here's what we found

Andrej Karpathy: From Vibe Coding to Agentic Engineering w/ Stephanie Zhan
▶︎

Andrej Karpathy: From Vibe Coding to Agentic Engineering w/ Stephanie Zhan

Systems Thinking for Leaders: Designing Solutions That Work
▶︎

Systems Thinking for Leaders: Designing Solutions That Work

EMPIEZA EL JUEVES CON FE | HOY DIOS TE DA PROTECCIÓN Y PAZ PARA TU FAMILIA | PADRE FREDDY BUSTAMANTE
▶︎

EMPIEZA EL JUEVES CON FE | HOY DIOS TE DA PROTECCIÓN Y PAZ PARA TU FAMILIA | PADRE FREDDY BUSTAMANTE

Why HMRC Doesn’t Want You to Understand This
▶︎

Why HMRC Doesn’t Want You to Understand This

Adding Multiple Species to a Jurassic Park Lagoon
▶︎

Adding Multiple Species to a Jurassic Park Lagoon

Wait... PostgreSQL can do WHAT?
▶︎

Wait... PostgreSQL can do WHAT?

God Says:"STOP HERE — LISTEN AND HEAR ME SPEAK"/God Message Now/God Message
▶︎

God Says:"STOP HERE — LISTEN AND HEAR ME SPEAK"/God Message Now/God Message