---
title: "Comment by StackShortlist on \"PostgreSQL EXPLAIN ANALYZE: What I Actually Look At in Query Plans\" | Hashnode"
description: "The point about fixing the estimate before tuning the query is the one that saves the most time. When ANALYZE is fresh and the gap still shows up on a filter ov"
url: "https://hashnode.com/posts/postgresql-explain-analyze-what-i-actually-look-at-in-query-plans/6ad2bf0da305ffe66918c506/comment/6ad31e778c8e8c2df5b9ec26"
---

[Discussion](https://hashnode.com/posts/postgresql-explain-analyze-what-i-actually-look-at-in-query-plans/6ad2bf0da305ffe66918c506)

Comment [PostgreSQL EXPLAIN ANALYZE: What I Actually Look At in Query Plans](https://hashnode.com/posts/postgresql-explain-analyze-what-i-actually-look-at-in-query-plans/6ad2bf0da305ffe66918c506)

[StackShortlist](https://hashnode.com/@veristria)

[Oct 17](https://hashnode.com/posts/postgresql-explain-analyze-what-i-actually-look-at-in-query-plans/6ad2bf0da305ffe66918c506/comment/6ad31e778c8e8c2df5b9ec26)

The point about fixing the estimate before tuning the query is the one that saves the most time. When ANALYZE is fresh and the gap still shows up on a filter over two related columns, like city and postal code, CREATE STATISTICS with dependencies can close it, since the planner assumes columns are independent by default. The BEGIN and ROLLBACK warning for UPDATE is worth having at the top too.

[Parsa Aftabi](https://hashnode.com/@parsaaftabi)

[Oct 17](https://hashnode.com/posts/postgresql-explain-analyze-what-i-actually-look-at-in-query-plans/6ad2bf0da305ffe66918c506/comment/6ad31e778c8e8c2df5b9ec26#reply-6ad326937c50be855a189a35)

good point on extended statistics — that's the exact spot where the planner's independence assumption falls apart. should've given it its own section.
