Re: On disable_cost

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: On disable_cost
Дата
Msg-id CAApHDvrvxjFOWY5fA==pnj1C1QX9bR-SLsycEE4YTB32uH-Xqw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: On disable_cost  (Alena Rybakina <a.rybakina@postgrespro.ru>)
Ответы Re: On disable_cost
Re: On disable_cost
Список pgsql-hackers
On Thu, 3 Oct 2024 at 08:41, Alena Rybakina <a.rybakina@postgrespro.ru> wrote:
> I may have misunderstood your message, but disabled nodes number must propagate up the tree, otherwise it will be
incorrect.

I think there are two misunderstandings on this thread:

1) You're misunderstanding what Laurenz is complaining about. He's
only concerned with the EXPLAIN output, not how disasbled_nodes works
internally.
2) Laurenz is misunderstanding what "Disabled Nodes" means. It has
nothing to do with other Paths which were considered and rejected. It
might be better named as "Disabled Degree". It tracks how many plan
nodes below and including this node are disabled.

Because of #2, I think I now understand why Laurenz was interested in
only showing this with VERBOSE. If it worked the way Laurenz thought,
I'd probably agree with him.

Overall, I think we need to do something here. There's no
documentation about what Disabled Nodes means so we either need to
make it easier to understand without documenting it or add something
to the documents about it. If Laurenz, who has a huge amount of
PostgreSQL experience didn't catch it, then what hope is there for the
average user?

David



В списке pgsql-hackers по дате отправления: