From: | David Rowley <dgrowleyml(at)gmail(dot)com> |
---|---|
To: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Cc: | Alena Rybakina <a(dot)rybakina(at)postgrespro(dot)ru>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Peter Geoghegan <pg(at)bowt(dot)ie>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: On disable_cost |
Date: | 2024-10-28 23:21:30 |
Message-ID: | CAApHDvrkf3V_7ttDrVUH2q-t3z2hXCerGK-fe=mdsbEzdKDJYg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, 19 Oct 2024 at 01:09, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
> Here is my attempt on that paragraph:
>
> When using the enable/disable flags to disable plan node types, many of
> the flags only discourage the use of the corresponding plan node and don't
> outright disallow the planner's ability to use the plan node type.
> Otherwise, certain queries could not be executed for lack of an alternative
> to using a disabled plan node. As a consequence, it is possible that the
> planner chooses a plan using a node that has been disabled. When this
> happens, the <command>EXPLAIN</command> output will indicate this fact.
I think that looks pretty good. However, I would like to keep the part
about the possibility of disabled nodes still being used is on
purpose. Mostly just to make it clear that it's not a bug. We get so
many false bug reports that I feel it's worthwhile mentioning that
explicitly.
Maybe since you dropped that sentence to shorten the paragraph, we
could instead just drop the "Otherwise, certain" sentence.
Also, the concern about using "this". How about we just write "When
the resulting plan contains a disabled node, the
<command>EXPLAIN</command> output will indicate this fact.", which
makes that self-contained.
That becomes:
When using the enable/disable flags to disable plan node types, many of
the flags only discourage the use of the corresponding plan node and don't
outright disallow the planner's ability to use the plan node type. This
is by design so that the planner still maintains the ability to form a
plan for a given query. When the resulting plan contains a disabled node,
the <command>EXPLAIN</command> output will indicate this fact.
David
Attachment | Content-Type | Size |
---|---|---|
disabled_docs_v3.patch | application/octet-stream | 1.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andy Fan | 2024-10-28 23:38:31 | Re: Considering fractional paths in Append node |
Previous Message | David Rowley | 2024-10-28 22:54:01 | Re: EXPLAIN IndexOnlyScan shows disabled when enable_indexonlyscan=on |