Re: 7.3.3 drop table takes very long time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 7.3.3 drop table takes very long time
Дата
Msg-id 16035.1073597192@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 7.3.3 drop table takes very long time  (Steve Crawford <scrawford@pinpointresearch.com>)
Список pgsql-general
Steve Crawford <scrawford@pinpointresearch.com> writes:
> On Thursday 08 January 2004 9:14 am, Mike Mascari wrote:
>> Is there any possibility that he's got an open transacation sitting
>> out there for days holding a lock on that table?

> Yesterday I had someone drop a table while a pg_dumpall was running.
> The drop didn't complete till the dump was done.

Yup, because pg_dump takes an AccessShareLock (reader's lock) on every
table it intends to dump.  But the process wanting to drop the table
would have been blocked on the lock, and would not have been chewing any
CPU time while it waited.  Eric seems to be seeing something different.

            regards, tom lane

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

Предыдущее
От: "Guillaume Houssay"
Дата:
Сообщение: vacuum
Следующее
От: Vivek Khera
Дата:
Сообщение: Re: MVCC for massively parallel inserts