From: | Dimitri <dimitri(at)France(dot)Sun(dot)COM> |
---|---|
To: | pgsql-questions(at)postgreSQL(dot)org |
Cc: | pgsql-general(at)postgreSQL(dot)org |
Subject: | Optimizer Question |
Date: | 1998-08-11 08:37:30 |
Message-ID: | 98081111195906.00369@dimitri |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi All!
I've tried some developements with PG and was surprised
by optimizer... So:
1. Why in query: "select distinct Attr from Table;"
optimizer never use Attr's index and always pass by Seq Scan?
2. Why in general any queries like:
select Attr from Table where --any conditions with Attr--;
optimizer choose Seq Scan and not Attr's index, when using of
Attr's index significally increases performance...
Thanks for any help.
(dim)
--
=====================================================
Dimitri KRAVTCHUK (dim) Sun Microsystems
Benchmark Engineer France
dimitri(at)France(dot)Sun(dot)COM
=====================================================
From | Date | Subject | |
---|---|---|---|
Next Message | Ryan Mchale | 1998-08-11 11:17:00 | clean database |
Previous Message | Vadim Mikheev | 1998-08-11 07:13:30 | Re: [GENERAL] removal of types |