Re: [PERFORM] Weird index scan

2005-03-30 Thread G u i d o B a r o s i o
Hi, 1) seems that the table is a view, I am wrong? If this is true, please give a query to that table, and try to guess if there is already a bottleneck there. 2) Add to the query an order by and try to find if it works better. 3) If you drop the index, and no other index exists, it will alw

[PERFORM] Weird index scan

2005-03-30 Thread Tambet Matiisen
I'm getting weird results for one of my queries. The actual time of this index scan doesn't make any sense: -> Index Scan using dok_dok_fk_i on dokumendid a (cost=0.00..566.24 rows=184 width=8) (actual time=0.170..420806.563 rows=1 loops=1) dok_dok_fk_i is index on dokumendid(dok_dok_id). Cur