pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: thomas.bessou@hotmail.fr
Subject: Query planner documentation should mention xxx_collapse_limit parameters
Date: Thu, 30 Jun 2022 16:15:51 +0000
Message-ID: <165660575172.671.12182908331636457344@wrigleys.postgresql.org> (raw)

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/git.html
Description:

We've spent days investigating a performance issue related to "explicit join
order"/"from_collapse_limit", where we would have expected a query using
"explicit join clauses" (we didn't know were named this way obviously, and
we are only using for ease-of-query-building purposes) to use the same plan
as a flat query.

During this time, we have naturally read the documentation at
https://www.postgresql.org/docs/current/planner-optimizer.html to see if it
would mention anything that would explain why these would behave
differently.
However, this documentation currently only says: "If the query uses fewer
than geqo_threshold relations, a near-exhaustive search is conducted to find
the best join sequence" (which we checked for), but does not mention the
explicit join behavior
(https://www.postgresql.org/docs/current/explicit-joins.html) nor the
from_collapse_limit or join_collapse_limit parameters.
(https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-FROM-COLLAPSE-LIMIT).

Mentioning these in a similar way as we explain geqo_threshold's possible
impact on query planning would be a huge improvement, and would have saved
us a lot of time.

Thanks,


Message-ID: <165660575172.671.12182908331636457344@wrigleys.postgresql.org>
Permalink:  ../165660575172.671.12182908331636457344@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/165660575172.671.12182908331636457344@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, thomas.bessou@hotmail.fr
  Subject: Re: Query planner documentation should mention xxx_collapse_limit parameters
  In-Reply-To: <165660575172.671.12182908331636457344@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox