Re: does max_connections affect the query planner

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: does max_connections affect the query planner
Дата
Msg-id
560.1568729620@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
does max_connections affect the query planner Bob Jolliffe <bobjolliffe@gmail.com>
Re: does max_connections affect the query planner Tom Lane <tgl@sss.pgh.pa.us>
Re: does max_connections affect the query planner Bob Jolliffe <bobjolliffe@gmail.com>
Re: does max_connections affect the query planner Jeff Janes <jeff.janes@gmail.com>
Bob Jolliffe  writes:
> We do know that max_connections is set quite high (600) when we don't
> really expect more than 100.  I wonder does the planner take
> max_connections x work_mem into account when considering the memory it
> has potentially available?

No.  There have been discussions to the effect that it ought to have
a more holistic view about available memory; but nothing's been done
about that, and certainly no existing release does so.

Usually the proximate cause of bad plan choices is bad rowcount
estimates --- you can spot that by comparing estimated and actual
rowcounts in EXPLAIN ANALYZE results.

			regards, tom lane


В списке pgsql-performance по дате отправления
От: Bob Jolliffe
Дата:
От: Bob Jolliffe
Дата:
FAQ