> From: Ivan Sergio Borgonovo <mail@xxxxxxxxxxxxxxx> > To: pgsql-general@xxxxxxxxxxxxxx > Date: 12/08/2010 16:43 > Subject: delete query taking way too long > Sent by: pgsql-general-owner@xxxxxxxxxxxxxx > > 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, Jayadevan DISCLAIMER: "The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original communication. IBS makes no warranty, express or implied, nor guarantees the accuracy, adequacy or completeness of the information contained in this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant loss or damage, if any, direct or indirect." -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general