Re: max_locks_per_transaction and partitioned tables

Поиск
Список
Период
Сортировка
От Michael Holt
Тема Re: max_locks_per_transaction and partitioned tables
Дата
Msg-id E7907DC29186A94988A077445AFD1DC014975405@EXCHANGEVIC.ad.terapeak.com
обсуждение исходный текст
Ответ на Re: max_locks_per_transaction and partitioned tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Thanks Tom. In the original plan a query of this sort was never supposed to happen, but it looks like some coding
issuesmay have allowed it. 


-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: September-19-12 2:04 PM
To: Michael Holt
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] max_locks_per_transaction and partitioned tables

Michael Holt <MHolt@terapeak.com> writes:
> We've had a system in operation for a few years that makes use of a substantial amount of partitioning. The parent
tablenow has over 4,000 children tables. Within the last couple of days the server started giving "out of shared
memory"errors with the suggestion to increase the max_locks_per_transaction. 
> If the parent table is queried will it require a lock for each one of the child tables? I'm guessing it will.

Yup, it will.  I'm a bit astonished that you've gotten this far without horrid performance problems.  The underlying
mechanismsfor inheritance aren't really designed to scale past perhaps a hundred child tables. 

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: max_locks_per_transaction and partitioned tables
Следующее
От: Rubén Crespo Flores
Дата:
Сообщение: Problem creating temporary tables . . .