Re: dropping partitioned table waits forever

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: dropping partitioned table waits forever
Дата
Msg-id 20060815213203.GN21363@pervasive.com
обсуждение исходный текст
Ответ на dropping partitioned table waits forever  ("Sriram Dandapani" <sdandapani@counterpane.com>)
Список pgsql-admin
On Mon, Aug 14, 2006 at 03:32:10PM -0700, Sriram Dandapani wrote:
> 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)

What about dropping/changing the trigger?
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Restoring database question, part 2..
Следующее
От: "Sriram Dandapani"
Дата:
Сообщение: Re: dropping partitioned table waits forever