Partitioning and deadlocks

Поиск
Список
Период
Сортировка
От Brad King
Тема Partitioning and deadlocks
Дата
Msg-id D45F1ECA30B59A4F96208F86532F901F1CB448F9@rdu-caex-01.channeladvisor.com
обсуждение исходный текст
Ответы Re: Partitioning and deadlocks  ("Brad King" <brad.king@channeladvisor.com>)
Список pgsql-admin
I'm experiencing deadlocking trying to clean up old partition data,
similar to this user:

http://svr5.postgresql.org/pgsql-admin/2006-06/msg00160.php

Specifically, an UPDATE on the base table for a single row, by PK, often
deadlocks the TRUNCATE on a child partition. I've added "where" criteria
to the UPDATE hoping constraint exclusion would help here, since the row
I'm updating is not even in the partition I'm truncating. No luck.

So, should I be using constraint exclusion and constraint critieria on
the UPDATE or not ? I need to be able to automate garbage collection of
old partitions. Since I can't use functions in constraints, that means I
have to do both a truncate and an alter table to drop and re-create
constraints. I simply want a circular partition of months 01 through 12,
but it sure seems like I'm doing a lot of ddl to get that accomplished,
and I have deadlocks.

Thanks,
Brad

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

Предыдущее
От: "Peter Koczan"
Дата:
Сообщение: separating data and logs
Следующее
От: "Patrick De Zlio"
Дата:
Сообщение: Inconsistent result from request