Re: Query planning on partitioned table causes postgres 13.4 to consume all memory
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Query planning on partitioned table causes postgres 13.4 to consume all memory |
| Дата | |
| Msg-id | 1556207.1632067384@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Query planning on partitioned table causes postgres 13.4 to consume all memory (Duncan Sands <duncan.sands@deepbluecap.com>) |
| Ответы |
Re: Query planning on partitioned table causes postgres 13.4 to consume all memory
|
| Список | pgsql-bugs |
Duncan Sands <duncan.sands@deepbluecap.com> writes:
> [ planning DELETE on a thousand-partition table takes forever ]
FWIW, this situation has been very much improved for v14 [1].
In older branches, the best advice I can give you is "don't use
so many partitions". Especially not with hash partitioning,
where the query WHERE clause generally won't translate to any
useful pruning of the partitions.
(Personally, I think that hash partitioning is an evil that
we shouldn't have implemented at all. Or at least there
should be stronger warnings about it in the manual than there
are now.)
regards, tom lane
[1] https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=86dc90056
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера