Re: delete query taking way too long - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject Re: delete query taking way too long
Date
Msg-id 20100812141427.363a031f@dawn.webthatworks.it
Whole thread Raw
In response to Re: delete query taking way too long  (Jayadevan M <Jayadevan.Maymala@ibsplc.com>)
List pgsql-general
On Thu, 12 Aug 2010 17:14:17 +0530
Jayadevan M <Jayadevan.Maymala@ibsplc.com> wrote:

> > I've
> > delete from catalog_items where ItemID in (select id from
> > import.Articoli_delete);
> Does catalog_items have child tables where the FK columns are not
> indexed? Regards,

Possibly, but very small ones.

What I missed to say is... that query always worked reasonably fast
in the past. The size of the DB didn't grow substantially recently.

I'd say the query shouldn't be the problem... the question should
have been:
what should I look when postgresql start to behave strangely?
eg. missing resources, locks, solved bug (it is a reasonably old
version)...

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


pgsql-general by date:

Previous
From: tv@fuzzy.cz
Date:
Subject: Re: delete query taking way too long
Next
From: Ivan Sergio Borgonovo
Date:
Subject: Re: delete query taking way too long