Re: Out of shared memory (locks per process) using table-inheritance style partitioning
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Out of shared memory (locks per process) using table-inheritance style partitioning |
| Дата | |
| Msg-id | 6726.1188499386@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Out of shared memory (locks per process) using table-inheritance style partitioning ("John Prevost" <j.prevost@gmail.com>) |
| Ответы |
Re: Out of shared memory (locks per process) using table-inheritance style partitioning
|
| Список | pgsql-general |
"John Prevost" <j.prevost@gmail.com> writes:
> So, what's the problem? Well=97I have twelve tables that are
> partitioned by hour. There are 24 hours in a day, there are seven
> days in a week, and... you may see where I'm going here. PostgreSQL
> gets a lock on each individual table queried (in this case, every
> single partition) and it doesn't take very long at all for the maximum
> number of locks (~2240 by default) to be taken out, particularly when
> data is being aggregated across the twelve different partitioned
> tables.
So what's the problem? Increase max_locks_per_transaction. The reason
we have that as a tunable is mainly to support systems with very large
numbers of tables.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера