Re: BUG #11904: out of memory when scanning large number of partitions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #11904: out of memory when scanning large number of partitions
Дата
Msg-id 14421.1415396018@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #11904: out of memory when scanning large number of partitions  (koposov@ast.cam.ac.uk)
Ответы Re: BUG #11904: out of memory when scanning large number of partitions  (Sergey Koposov <koposov@ast.cam.ac.uk>)
Список pgsql-bugs
koposov@ast.cam.ac.uk writes:
> I have a large table (few Tb) partitioned in ~ 12000 smaller tables, using
> inheritance from the parent one.

That's an utterly insane number of partitions.

> I noticed that when the user tried to query from the parent table
> (not something we plan to do often), PG run out of memory (128 Gb on our
> machine).

I'm unsurprised.

The inheritance infrastructure is only designed to support maybe 100
child tables.  If we ever get around to implementing a hard-wired
partitioning scheme, it's possible that multiple thousands of partitions
could be practical, but it isn't today.  Sorry.

            regards, tom lane

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

Предыдущее
От: koposov@ast.cam.ac.uk
Дата:
Сообщение: BUG #11904: out of memory when scanning large number of partitions
Следующее
От: Rémi Zara
Дата:
Сообщение: Build broken on mips