Re: slow DELETE on 12 M row table - Mailing list pgsql-performance

From Richard Huxton
Subject Re: slow DELETE on 12 M row table
Date
Msg-id 4A4460FD.1020709@archonet.com
Whole thread Raw
In response to Re: slow DELETE on 12 M row table  (Greg Stark <gsstark@mit.edu>)
List 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 by date:

Previous
From: Greg Stark
Date:
Subject: Re: slow DELETE on 12 M row table
Next
From: Janet Jacobsen
Date:
Subject: Re: slow DELETE on 12 M row table