Re: Slow delete times?? - Mailing list pgsql-performance

From Tom Lane
Subject Re: Slow delete times??
Date
Msg-id 8854.1074908674@sss.pgh.pa.us
Whole thread Raw
In response to Slow delete times??  ("Octavio Alvarez" <alvarezp@alvarezp.ods.org>)
List pgsql-performance
"Octavio Alvarez" <alvarezp@alvarezp.ods.org> writes:
> Please tell me if this timing makes sense to you for a Celeron 433 w/
> RAM=256MB dedicated testing server. I expected some slowness, but not this
> high.

I'll bet you have foreign keys referencing this table, and the
referencing columns do not have indexes.  PG will let you do that
... but it makes updates and deletes horribly slow.  You generally
want to add those indexes.

If they *are* indexed, check for datatype mismatches.  That's
another thing that kills performance ...

            regards, tom lane

pgsql-performance by date:

Previous
From: Jenny Zhang
Date:
Subject: query slows under load
Next
From: Mark Kirkwood
Date:
Subject: Re: High Performance/High Reliability File system on SuSE64