Re: delete query taking way too long

From: Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org, Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
Subject: Re: delete query taking way too long
Date: 2010-08-12 11:31:03
Message-ID: 155886.60111.qm@web29720.mail.ird.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

What's the output of explain?

--- On Thu, 12/8/10, Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it> wrote:

> From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
> Subject: [GENERAL] delete query taking way too long
> To: pgsql-general(at)postgresql(dot)org
> Date: Thursday, 12 August, 2010, 12:14
> I've
> delete from catalog_items where ItemID in (select id from
> import.Articoli_delete);
>
> id and ItemID have an index.
>
> catalog_items is ~1M rows
> Articoli_delete is less than 2K rows.
>
> This query has been running for roughly 50min.
> Right now it is the only query running.
>
> PostgreSQL 8.3.4 on x86_64-pc-linux-gnu, compiled by GCC cc
> (GCC)
> 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
>
> --
> Ivan Sergio Borgonovo
> http://www.webthatworks.it
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jayadevan M 2010-08-12 11:44:17 Re: delete query taking way too long
Previous Message Ivan Sergio Borgonovo 2010-08-12 11:14:03 delete query taking way too long