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

From Scott Marlowe
Subject Re: slow DELETE on 12 M row table
Date
Msg-id dcc563d10907021721q675309e0w1173d9d6c620e069@mail.gmail.com
Whole thread Raw
In response to Re: slow DELETE on 12 M row table  (Janet Jacobsen <jsjacobsen@lbl.gov>)
List pgsql-performance
On Fri, Jun 26, 2009 at 1:34 AM, Janet Jacobsen<jsjacobsen@lbl.gov> wrote:
> Thank you for the answers.  Very helpful.
>
> Between the time that I sent my original post and saw your reply,
> I tried to drop a couple of foreign key constraints.  The alter
> table statements also showed up as "waiting" when I ran ps aux.
>
> I took your suggestion to run pg_locks and pg_stat_activity.
> pg_stat_activity showed that I had three statements that were
> waiting, and that there was one user whose query was given
> as "<insufficient privilege>".  I killed the process associated
> with that user, and my three waiting statements executed
> immediately.

FYI, that means you, the user, don't have sufficient privileges to
view their query.

pgsql-performance by date:

Previous
From: Janet Jacobsen
Date:
Subject: Re: slow DELETE on 12 M row table
Next
From: Sergei Politov
Date:
Subject: Most effective insert or replace