Re: Index of a table is not used (in any case) - Mailing list pgsql-sql

From Reiner Dassing
Subject Re: Index of a table is not used (in any case)
Date
Msg-id 3BD515B0.C14FE0FB@wettzell.ifag.de
Whole thread Raw
In response to Index of a table is not used (in any case)  (Reiner Dassing <dassing@wettzell.ifag.de>)
List pgsql-sql
Hello all!

Thank you for the answers I got.

I would like to mention first, that I will use the [SQL] list for my
answers,
regarding the notice of Josh Berkus.

Q: "did you use VACUUM ANALYZE"?
A: This table was a test bed, just using INSERTS without ANY deletes or
updates  (See:  vacuum verbose analyze wetter;   NOTICE:  --Relation wetter--   NOTICE:  Pages 149752: Changed 0,
reaped194, Empty 0, New 0;             Tup 20340000: Vac 26169, Keep/VTL 0/0,  Crash 0, UnUsed 0,
 
MinLen 52,             MaxLen 52;             Re-using: Free/Avail. Space 1467792/1467792;             EndEmpty/Avail.
  Pages 0/194. CPU 6.10s/1.78u sec.  )
 


Q: You should upgrade to 7.1.3?
A: Can you tell me the specific the reason?


Am afraid, that the real answer is not mentioned:
Why is the index used in the SELECT:
select * from wetter order by epoche desc;

select * from wetter where epoche between '1970-01-01' and '1980-01-01'
order by epoche asc;

?

Any ideas?

--
Mit freundlichen Gruessen / With best regards  Reiner Dassing


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Index of a table is not used (in any case)
Next
From: Haller Christoph
Date:
Subject: Re: Query On Case structure