Re: Big performance slowdown from 11.2 to 13.3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Big performance slowdown from 11.2 to 13.3
Дата
Msg-id 732758.1626911007@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: Big performance slowdown from 11.2 to 13.3  ("ldh@laurent-hasson.com" <ldh@laurent-hasson.com>)
Ответы RE: Big performance slowdown from 11.2 to 13.3
Список pgsql-performance
"ldh@laurent-hasson.com" <ldh@laurent-hasson.com> writes:
> From: Peter Geoghegan <pg@bowt.ie>
>> I imagine that this has something to do with the fact that the hash aggregate spills to disk in Postgres 13.

> So how is this happening? I mean, it's the exact same query, looks like the same plan to me, it's the same data on
theexact same VM etc... Why is that behavior so different? 

What Peter's pointing out is that v11 never spilled hashagg hash tables to
disk period, no matter how big they got (possibly leading to out-of-memory
situations or swapping, but evidently you have enough RAM to have avoided
that sort of trouble).  I'd momentarily forgotten that, but I think he's
dead on about that explaining the difference.  As he says, messing with
hash_mem_multiplier would be a more targeted fix than increasing work_mem
across the board.

            regards, tom lane



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

Предыдущее
От: "ldh@laurent-hasson.com"
Дата:
Сообщение: RE: Big performance slowdown from 11.2 to 13.3
Следующее
От: "ldh@laurent-hasson.com"
Дата:
Сообщение: RE: Big performance slowdown from 11.2 to 13.3