Thread: INDEXes

INDEXes

From
Leonia Zając
Date:
Hi !
 
Can anybody say, HOW does the postgre sql query planer, or executer,  prepers the query plan, if i have several indexes on my table ?
 
 
Best Regards
Leo

 

Attachment

Re: INDEXes

From
Bruce Momjian
Date:
Leonia Zaj�c wrote:
> Li?cieHi !
>
> Can anybody say, HOW does the postgre sql query planer, or executer,
> prepers the query plan, if i have several indexes on my table ?

You can look at EXPLAIN to see the index chosen.  I have an "Internals
through Pictures" PDF on my home page below that outlines how the
decisions are made, plus there is the source code and various README
files that go into details about the optimizer.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073