Re: slow DELETE on 12 M row table

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: slow DELETE on 12 M row table
Дата
Msg-id 4A4460FD.1020709@archonet.com
обсуждение исходный текст
Ответ на Re: slow DELETE on 12 M row table  (Greg Stark <gsstark@mit.edu>)
Список pgsql-performance
Greg Stark wrote:
> "waiting" means it's blocked trying to acquire a lock. Some open
> transaction has the table you're trying to index locked. Look in
> pg_locks and pg_stat_activity to find out who.

Or you might find CREATE INDEX CONCURRENTLY fits your situation.

http://www.postgresql.org/docs/8.3/static/sql-createindex.html#SQL-CREATEINDEX-CONCURRENTLY

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: slow DELETE on 12 M row table
Следующее
От: Janet Jacobsen
Дата:
Сообщение: Re: slow DELETE on 12 M row table