Re: Unworkable plan above certain row count

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unworkable plan above certain row count
Дата
Msg-id 503301.1651111694@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Unworkable plan above certain row count  (André Hänsel <andre@webkr.de>)
Список pgsql-performance
=?iso-8859-1?Q?Andr=E9_H=E4nsel?= <andre@webkr.de> writes:
> Now if you change
> INSERT INTO a(a_id) SELECT generate_series(1, 20000);
> to
> INSERT INTO a(a_id) SELECT generate_series(1, 200000);
> i.e. add a zero, the plan becomes [ not a hashed subplan ]

Yeah, it won't hash the subplan if the estimated size of the hash
table exceeds work_mem.  In this case, boosting work_mem would be
a mighty good idea.

            regards, tom lane



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

Предыдущее
От: André Hänsel
Дата:
Сообщение: Unworkable plan above certain row count
Следующее
От: Emil Iggland
Дата:
Сообщение: Re: Performance differential when 0 values present vs when 1 values present. Planner return 52k rows when 0 expected.