Deleting one record from a table taking 17s. - Mailing list pgsql-performance

From Yusuf
Subject Deleting one record from a table taking 17s.
Date
Msg-id 3EF32DF8.3060900@netscape.net
Whole thread Raw
Responses Re: Deleting one record from a table taking 17s.
List pgsql-performance
Why would the following query take soo long to run? What does 28.12 msec represent, since the total running time is
16801.86 ms.

The table phoneinfo has a primary key called phoneinfo_id and the table has 400 000 records.

mydb=#explain analyze delete from phoneinfo where phoneinfo_id = 85723;

                                                         QUERY PLAN

---------------------------------------------------------------------------------------------------------------------
-----
  Index Scan using phoneinfo_pkey on phoneinfo  (cost=0.00..3.81 rows=1 width=6) (actual time=27.93..27.94 rows=1 loop
s=1)
    Index Cond: (phoneinfo_id = 85723)
  Total runtime: 28.12 msec
(3 rows)

Time: 16801.86 ms

BTW, I have \timing on.


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Recent 7.4 change slowed down a query by a factor of 3
Next
From: Rod Taylor
Date:
Subject: Re: Deleting one record from a table taking 17s.