Skip site navigation (1) Skip section navigation (2)

join/from_collapse_limit and geqo_threshold default values

From: Vlad Arkhipov <arhipov(at)dc(dot)baikal(dot)ru>
To: pgsql-performance(at)postgresql(dot)org
Subject: join/from_collapse_limit and geqo_threshold default values
Date: 2008-05-23 09:01:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
I wonder why join_collapse_limit default values is set to 8 but 
geqo_threshold is 12. Optimizer doesn't change the order of JOIN's of 
queries that contains from 8 to 11 tables. Why it's 'wise' decision as 
documentation says?

from_collapse_limit (integer)

    The planner will merge sub-queries into upper queries if the
    resulting FROM list would have no more than this many items. Smaller
    values reduce planning time but might yield inferior query plans.
    The default is eight. It is usually wise to keep this less than
    For more information see Section 14.3

pgsql-performance by date

Next:From: Andrzej ZawadzkiDate: 2008-05-23 10:41:29
Subject: Quad Xeon or Quad Opteron?
Previous:From: Luke LonerganDate: 2008-05-23 03:11:20
Subject: Re: I/O on select count(*)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group