Skip site navigation (1) Skip section navigation (2)

Re: slow DELETE on 12 M row table

From: Richard Huxton <dev(at)archonet(dot)com>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Janet Jacobsen <jsjacobsen(at)lbl(dot)gov>, pgsql-performance(at)postgresql(dot)org
Subject: Re: slow DELETE on 12 M row table
Date: 2009-06-26 05:47:41
Message-ID: 4A4460FD.1020709@archonet.com (view raw or flat)
Thread:
Lists: 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

In response to

pgsql-performance by date

Next:From: Janet JacobsenDate: 2009-06-26 07:34:07
Subject: Re: slow DELETE on 12 M row table
Previous:From: Greg StarkDate: 2009-06-26 03:17:49
Subject: Re: slow DELETE on 12 M row table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group