---
title: "Discussion on \"How Stale PostgreSQL Statistics Made a Query 580 Times Slower\" | Hashnode"
description: "Discussion on \"How Stale PostgreSQL Statistics Made a Query 580 Times Slower\". PostgreSQL 18, like 17, auto-analyzes a table only after 10% of it changes, and a 9.3% backfill left a query on the wrong index."
url: "https://hashnode.com/posts/how-stale-postgresql-statistics-made-a-query-580-times-slower/6b05316d576f3a5373c30f1b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How Stale PostgreSQL Statistics Made a Query 580 Times Slower](https://anatoliizhadan.hashnode.dev/how-stale-postgresql-statistics-made-a-query-580-times-slower?utm_source=hashnode&utm_medium=feed)

PostgreSQL 18, like 17, auto-analyzes a table only after 10% of it changes, and a 9.3% backfill left a query on the wrong index.

2d ago · 13 min read · anatoliizhadan.hashnode.dev  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#query-optimization](https://hashnode.com/tag/query-optimization)
-   [#autovacuum](https://hashnode.com/tag/autovacuum)
-   [#database](https://hashnode.com/tag/database)
-   [#sql](https://hashnode.com/tag/sql)

## Written by

[Anatolii Zhadan](https://hashnode.com/@anatoliizhadan)

@anatoliizhadan · Lisbon, Portugal

  
[View profile](https://hashnode.com/@anatoliizhadan)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
