pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ivan Voras <ivoras@fer.hr>
To: Rod Taylor <rbt@rbt.ca>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimizing DELETE
Date: Tue, 19 Sep 2006 22:39:42 +0200
Message-ID: <4510558E.7020205@fer.hr> (raw)
In-Reply-To: <1158673987.71040.24.camel@home>
References: <450FEF1A.4070106@fer.hr>
	<1158673987.71040.24.camel@home>

Rod Taylor wrote:
> On Tue, 2006-09-19 at 15:22 +0200, Ivan Voras wrote:
>> I've just fired off a "DELETE FROM table" command (i.e. unfiltered 
>> DELETE) on a trivially small table but with many foreign key references 
>> (on similar-sized tables), and I'm waiting for it to finish. It's been 
>> 10 minutes now, which seems very excessive for a table of 9000 rows on a 
>> 3 GHz desktop machine.
> 
> I would guess that a few of those referenced tables are missing indexes
> on the referenced column.

Yes, it was a pilot error :(

Among the small and properly indexed referencing tables there was a
seldom queried but huge log table.




view thread (5+ messages)

Message-ID: <4510558E.7020205@fer.hr>
Permalink:  ../4510558E.7020205@fer.hr/
Also on:    postgresql.org/message-id/4510558E.7020205@fer.hr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: ivoras@fer.hr, rbt@rbt.ca
  Subject: Re: Optimizing DELETE
  In-Reply-To: <4510558E.7020205@fer.hr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox