<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/all-your-gucs-in-a-row-the-geqo-family-jnt577kaa" -->

---
title: All Your GUCs in a Row: The geqo Family | daily.dev
description: PostgreSQL&#x27;s Genetic Query Optimizer (GEQO) has seven configuration parameters (GUCs), but only one truly matters for day-to-day operations: geqo_threshold....
canonical: https://daily.dev/posts/all-your-gucs-in-a-row-the-geqo-family-jnt577kaa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: All Your GUCs in a Row: The geqo Family | daily.dev
og:description: PostgreSQL&#x27;s Genetic Query Optimizer (GEQO) has seven configuration parameters (GUCs), but only one truly matters for day-to-day operations: geqo_threshold....
og:url: https://daily.dev/posts/all-your-gucs-in-a-row-the-geqo-family-jnt577kaa
og:image: https://api.daily.dev/og/posts/jnt577kaA.png
og:image:alt: All Your GUCs in a Row: The geqo Family
og:image:width: 1200
og:image:height: 630
og:locale: 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: The geqo Family

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

## Summary

PostgreSQL's Genetic Query Optimizer (GEQO) has seven configuration parameters (GUCs), but only one truly matters for day-to-day operations: geqo_threshold. GEQO kicks in when a query involves too many relations for the regular dynamic programming planner to handle exhaustively. The threshold defaults to 12 — calibrated for 1990s hardware — and raising it into the mid-to-high teens is usually safe on modern machines. The other six parameters (geqo, geqo_effort, geqo_pool_size, geqo_generations, geqo_selection_bias, geqo_seed) are either a master switch to leave on, or hyperparameters that are practically untunable without a proper benchmark workload. GEQO is widely considered de facto deprecated within the PostgreSQL project, with a 2021 pgsql-hackers thread explicitly calling it that, though no replacement has landed yet. Key practical advice: leave geqo on as a safety backstop, raise geqo_threshold carefully while monitoring planning time, keep it above collapse limits, and treat queries hitting GEQO as a signal to investigate the query structure rather than tune the algorithm.

## Full article

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

## Similar posts on daily.dev

- [All Your GUCs in a Row: join\_collapse\_limit](https://daily.dev/posts/all-your-gucs-in-a-row-join-collapse-limit-rykvggydx) · Planet PostgreSQL · 1 upvotes · 1 comments
- [All Your GUCs in a Row: from\_collapse\_limit](https://daily.dev/posts/all-your-gucs-in-a-row-from-collapse-limit-r62ismyyi) · Planet PostgreSQL · 0 upvotes · 0 comments
- [All Your GUCs in a Row: effective\_cache\_size](https://daily.dev/posts/all-your-gucs-in-a-row-effective-cache-size-7o5w3bmms) · Planet PostgreSQL · 0 upvotes · 0 comments
- [All Your GUCs in a Row: constraint\_exclusion](https://daily.dev/posts/all-your-gucs-in-a-row-constraint-exclusion-thbwdhnen) · Planet PostgreSQL · 13 upvotes · 0 comments
- [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

---

Tags: [#data-science](https://daily.dev/tags/data-science), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/all-your-gucs-in-a-row-the-geqo-family-jnt577kaa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"All Your GUCs in a Row: The geqo Family","url":"https://daily.dev/posts/all-your-gucs-in-a-row-the-geqo-family-jnt577kaa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/all-your-gucs-in-a-row-the-geqo-family-jnt577kaa"},"datePublished":"2026-07-26T01:05:04.408Z","dateModified":"2026-07-26T01:05:28.383Z","description":"PostgreSQL's Genetic Query Optimizer (GEQO) has seven configuration parameters (GUCs), but only one truly matters for day-to-day operations: geqo_threshold....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8ac669146870b4761d1dd207f5c4e6b1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8ac669146870b4761d1dd207f5c4e6b1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Planet PostgreSQL","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Planet PostgreSQL","logo":"https://media.daily.dev/image/upload/logos/placeholder.jpg","url":"https://daily.dev/sources/planet-postgresql"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/all-your-gucs-in-a-row-the-geqo-family-jnt577kaa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"data-science,postgresql","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Planet PostgreSQL","item":"https://daily.dev/sources/planet-postgresql"},{"@type":"ListItem","position":3,"name":"All Your GUCs in a Row: The geqo Family"}]}
```

