Re: LIMIT causes planner to do Index Scan using a less optimal index

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

 




Do you mean one index on two columns?

something like this:   create index idx1 on tb1(col1, col2);

Thanks much!

Xuefeng Zhu (Sherry)
Crown Consulting Inc. -- Oracle DBA
AIM Lab Data Team
(703) 925-3192



Grzegorz Jaśkiewicz <gryzman@xxxxxxxxx>

04/07/2010 08:51 AM

To
Sherry CTR Zhu/AWA/CNTR/FAA@FAA
cc
Joel Jacobson <joel@xxxxxxxxxxxxxxx>, pgsql-performance@xxxxxxxxxxxxxx, Robert Haas <robertmhaas@xxxxxxxxx>
Subject
Re: LIMIT causes planner to do Index Scan using a less         optimal index







On Wed, Apr 7, 2010 at 1:20 PM, <Sherry.CTR.Zhu@xxxxxxx> wrote:

Guys,


  Thanks for trying and opening your mind.  

  If you want to know how Oracle addressed this issue, here it is:  index on two columns.  I remember that they told me in the training postgres has no this kind of index, can someone clarify?



lies. postgresql allows you indices on multiple columns. What it does not have, is index on multiple tables.



--
GJ


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

  Powered by Linux