Re: Useless memoize path generated for unique join on primary keys

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Useless memoize path generated for unique join on primary keys
Дата
Msg-id CAApHDvrjwrmnxe__Xhz0NyxKL6d1wW7i=2_p+d5oj2QfmTCnhA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Useless memoize path generated for unique join on primary keys  (Benjamin Coutu <ben.coutu@zeyos.com>)
Список pgsql-performance
On Wed, 4 May 2022 at 00:21, Benjamin Coutu <ben.coutu@zeyos.com> wrote:
> Thanks David, using extended statistics for both (and only for both) tables solved this problem.

Oh, whoops. I did get that backwards.  The estimate used by the
Memoize costing code is from the outer side of the join, which is the
extdataempty in this case. I don't think the
extdataregular_field_index_stats will do anything. It'll be the ones
you added on extdataempty that are making it work.

> BTW, thank you for all your work on performance in recent releases.

Thanks for the feedback :)

David



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

Предыдущее
От: Benjamin Coutu
Дата:
Сообщение: Re: Useless memoize path generated for unique join on primary keys
Следующее
От: Levi Aul
Дата:
Сообщение: Window partial fetch optimization