---
title: "All Your GUCs in a Row: cpu_index_tuple_cost, cpu_operator_cost, and cpu_tuple_cost"
url: https://daily.dev/posts/all-your-gucs-in-a-row-cpu-index-tuple-cost-cpu-operator-cost-and-cpu-tuple-cost-mrzxarzqd
source_url: https://postgr.es/p/9k_
type: article
source: "Planet PostgreSQL"
published: 2026-06-02T01:03:46.112Z
updated: 2026-06-07T17:50:32.042Z
tags: ["postgresql"]
reading_time: 4
upvotes: 3
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# All Your GUCs in a Row: cpu_index_tuple_cost, cpu_operator_cost, and cpu_tuple_cost

**[Planet PostgreSQL](https://daily.dev/sources/planet-postgresql)** · 4 min read · 3 upvotes · 0 comments

## Summary

PostgreSQL's planner uses three CPU cost constants — cpu_tuple_cost (0.01), cpu_index_tuple_cost (0.005), and cpu_operator_cost (0.0025) — as relative weights anchored to seq_page_cost. These defaults encode stable CPU-to-storage ratios that have held for 25 years and should almost never be changed. When a query plan is wrong, the real culprits are almost always random_page_cost (especially on SSDs, where lowering it toward 1.1 is appropriate) or inaccurate row-count estimates (fixable via ANALYZE and statistics tuning). Changing the CPU constants is a global operation that silently re-prices every plan on the system, likely fixing one query while breaking others.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://postgr.es/p/9k_>

## Similar posts on daily.dev

- [All Your GUCs in a Row: jit\_above\_cost, jit\_inline\_above\_cost, and jit\_optimize\_above\_cost](https://daily.dev/posts/all-your-gucs-in-a-row-jit-above-cost-jit-inline-above-cost-and-jit-optimize-above-cost-zqoav78ew) · Planet PostgreSQL · 7 upvotes · 1 comments
- [All Your GUCs in a Row: cursor\_tuple\_fraction](https://daily.dev/posts/all-your-gucs-in-a-row-cursor-tuple-fraction-3ucl8qhmc) · Planet PostgreSQL · 0 upvotes · 0 comments
- [The real cost of random I/O](https://daily.dev/posts/the-real-cost-of-random-i-o-b3khnmb6n) · Lobsters · 26 upvotes · 0 comments

---

Tags: [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/all-your-gucs-in-a-row-cpu-index-tuple-cost-cpu-operator-cost-and-cpu-tuple-cost-mrzxarzqd)
