Re: Slow deletes

From: Edmund Dengler <edmundd(at)eSentire(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Slow deletes
Date: 2002-08-13 03:04:09
Message-ID: Pine.BSO.4.44.0208122302320.20347-100000@cyclops4.esentire.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Anyway to conveniently dump the triggers (3 are constraint check, my own
personal one is suppose to be on inserts only)?

Regards,
Ed

P.S. Trying to delete a couple of thousand rows, and while the explain
is indeed faster (and I believe it is getting to the actual delete part
faster), it is still taking quite a long time.

On Mon, 12 Aug 2002, Tom Lane wrote:

> Edmund Dengler <edmundd(at)eSentire(dot)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
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-08-13 03:38:29 Re: Slow deletes
Previous Message Greg Copeland 2002-08-13 02:57:51 Re: [HACKERS] Linux Largefile Support In Postgresql RPMS