s to find the
     cheapest one.
    </p><p>
     If the query uses fewer than <a class="xref" href="runtime-config-query.html#GUC-GEQO-THRESHOLD">geqo_threshold</a>
     relations, a near-exhaustive search is conducted to find the best
     join sequence.  The planner preferentially considers joins between any
     two relations for which there exists a corresponding join clause in the
     <code class="literal">WHERE</code> qualification (i.e., for
     which a restriction like <code class="literal">where