From: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | Janet Jacobsen <jsjacobsen(at)lbl(dot)gov> |
Cc: | Greg Stark <gsstark(at)mit(dot)edu>, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: slow DELETE on 12 M row table |
Date: | 2009-07-03 00:21:16 |
Message-ID: | dcc563d10907021721q675309e0w1173d9d6c620e069@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Fri, Jun 26, 2009 at 1:34 AM, Janet Jacobsen<jsjacobsen(at)lbl(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Sergei Politov | 2009-07-03 11:06:13 | Most effective insert or replace |
Previous Message | Janet Jacobsen | 2009-07-02 22:48:23 | Re: slow DELETE on 12 M row table |