Re: select count() out of memory

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: select count() out of memory
Дата
Msg-id 15321.1193322640@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: select count() out of memory  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: select count() out of memory  (tfinneid@student.matnat.uio.no)
Re: select count() out of memory  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> tfinneid@student.matnat.uio.no wrote:
>> I did a test previously, where I created 1 million partitions (without
>> data) and I checked the limits of pg, so I think it should be ok.

> Clearly it's not.

You couldn't have tested it too much --- even planning a query over so
many tables would take forever, and actually executing it would surely
have run the system out of locktable space before it even started
scanning.

The partitioning facility is designed for partition counts in the tens,
or maybe hundreds at the most.

            regards, tom lane

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Crosstab Problems
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: [PGSQL v8.2.5] Similar queries behave differently