Re: BUG #17548: Aggregate queries on partitioned tables can cause OOM.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17548: Aggregate queries on partitioned tables can cause OOM.
Дата
Msg-id 1942040.1657664154@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #17548: Aggregate queries on partitioned tables can cause OOM.  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> Aggregate queries on partitioned tables can cause out of memory error.

This is resolved in PG v13 and later.  In older versions, it's
advisable to do an explicit ANALYZE on a large table, so that the
planner knows that the number of groups is large and will avoid
trying to do a hash aggregation.

(I don't think it's terribly specific to partitioned tables,
for what that's worth, except that stats for a partitioned
table might be more likely to be out-of-date.)

            regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: can't drop table due to reference from orphaned temp function
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #17543: CSVLOG malformed from disk space error