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

Поиск
Список
Период
Сортировка
От Matthew Wakeling
Тема Re: LIMIT causes planner to do Index Scan using a less optimal index
Дата
Msg-id alpine.DEB.2.00.1004071433080.9798@aragorn.flymine.org
обсуждение исходный текст
Ответ на Re: LIMIT causes planner to do Index Scan using a less optimal index  (Sherry.CTR.Zhu@faa.gov)
Список pgsql-performance
On Wed, 7 Apr 2010, Sherry.CTR.Zhu@faa.gov wrote:
> Please just let me know if Postgres can do this kind of index or not.
>
> create index idx1 on tb1(col1, col2)
>
> Then later we can find it is useful or useless.

Have you tried it?

> Grzegorz Jaśkiewicz <gryzman@gmail.com> wrote:
>> something like this:   create index idx1 on tb1(col1, col2);
>> yup :)

For those of you who are not native English speakers, "Yup" is a synonym
for "Yes."

Matthew

--
Richards' Laws of Data Security:
 1. Don't buy a computer.
 2. If you must buy a computer, don't turn it on.

В списке pgsql-performance по дате отправления:

Предыдущее
От: Sherry.CTR.Zhu@faa.gov
Дата:
Сообщение: Re: LIMIT causes planner to do Index Scan using a less optimal index
Следующее
От: Robert Haas
Дата:
Сообщение: Re: query slow; strace output worrisome