Re: Analyze all plans

Поиск
Список
Период
Сортировка
От Oleksandr Shulgin
Тема Re: Analyze all plans
Дата
Msg-id CACACo5RzQKzdyJmERHb9dL+XWW=DsyM+S4KBoawUVs8v==NKoA@mail.gmail.com
обсуждение исходный текст
Ответ на Analyze all plans  (Donald Dong <xdong@csumb.edu>)
Ответы Re: Analyze all plans  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Jan 23, 2019 at 9:44 AM Donald Dong <xdong@csumb.edu> wrote:

1. Enumerate all the plans

Not sure this is going to work.  Because of the total number of possible plans is somewhere
around O(n!), if I'm not mistaken, in terms of number of joined relations times the available
access methods times the possible join strategies.

So enumerating all possible plans stops being practical for even slightly complicated queries.

Regards,
--
Alex

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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: yet another comment typo patch
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: pg_dump multi VALUES INSERT