dropping partitioned table waits forever

Поиск
Список
Период
Сортировка
От Sriram Dandapani
Тема dropping partitioned table waits forever
Дата
Msg-id 6992E470F12A444BB787B5C937B9D4DF0574F731@ca-mail1.cis.local
обсуждение исходный текст
Ответы Re: dropping partitioned table waits forever
Список pgsql-admin

Hi

 

I have a table partitioned on a daily basis. Data is constantly inserted in this table. When I attempt to drop a partition that is not used(i.e previous day’s), the drop table waits for a loooong time.This is probably due to the fact that the old partitioned table is being referenced in a query plan(the insert into the parent table uses triggers).

 

How can I prevent the locking out of the drop table? I tried truncate table but it is worse. It locks out the inserts in the parent table and then it waits.(hence causing a deadlock)

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

Предыдущее
От: Amaro Oliveira
Дата:
Сообщение: unsubscribe
Следующее
От: Abu Mushayeed
Дата:
Сообщение: UTF8 Questions