| От | Tom Lane |
|---|---|
| Тема | Re: Partitioned tables and locks |
| Дата | |
| Msg-id | 6714.1576762716@sss.pgh.pa.us обсуждение |
| Ответ на | Partitioned tables and locks (James Sewell <james.sewell@jirotech.com>) |
| Ответы |
Re: Partitioned tables and locks
|
| Список | pgsql-general |
James Sewell <james.sewell@jirotech.com> writes:
> Is it expected that a lock on a partitioned table will take out 2 locks per
> child regardless of the number of children which are excluded at plan time?
Depends on the details of your query, and on which PG version you're
using, but it's by no means surprising for each child table to get
locked. (I'm not sure where *two* locks would come from, though.)
If you're working with massively partitioned tables, increasing
max_locks_per_transaction is a good idea.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера