Re: Slow deletes - Mailing list pgsql-general

From Tom Lane
Subject Re: Slow deletes
Date
Msg-id 21372.1029207422@sss.pgh.pa.us
Whole thread Raw
In response to Re: Slow deletes  (Edmund Dengler <edmundd@eSentire.com>)
Responses Re: Slow deletes
List pgsql-general
Edmund Dengler <edmundd@eSentire.com> writes:
> Thanks! That seems to have been the issue!
> => explain delete from syslog_event where event_id = 1000::int8;
> NOTICE:  QUERY PLAN:

> Index Scan using syslog_event_event_id_idx on syslog_event
> (cost=0.00..3.02 rows=1 width=6)

That's better.

> Deleting a single row now takes only about 5 seconds.

Hm, still seems like a huge amount of time to delete a single row.
I suspect query-optimization problems inside your triggers.
Can't say much without more details though.

            regards, tom lane

pgsql-general by date:

Previous
From: Edmund Dengler
Date:
Subject: Re: Slow deletes
Next
From: Greg Copeland
Date:
Subject: Re: [HACKERS] Linux Largefile Support In Postgresql RPMS