Re: slow deletes on pgsql 7.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It was on my first email.
Here it is again:
MONSOON=# explain delete from scenario where id='1099';
                                  QUERY PLAN
------------------------------------------------------------------------------
 Index Scan using scenario_pkey on scenario  (cost= 0.00..3.14 rows=1 width=6)
   Index Cond: (id = 1099::bigint)
(2 rows)

MONSOON=# explain delete from scenario where id='1023';
                                  QUERY PLAN
------------------------------------------------------------------------------
 Index Scan using scenario_pkey on scenario  (cost=0.00..3.14 rows=1 width=6)
   Index Cond: (id = 1023::bigint)
(2 rows)
 
Thanks,
J

 
On 4/25/06, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
"Junaili Lie" <junaili@xxxxxxxxx> writes:
> ie. delete from scenario where id=3D'1023' is very fast, but delete from
> scenario where id=3D'1099' is running forever.

What does EXPLAIN show for each of those cases?

                       regards, tom lane


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux