Re: PostgreSQL using the wrong Index

Поиск
Список
Период
Сортировка
От Wei Weng
Тема Re: PostgreSQL using the wrong Index
Дата
Msg-id 42ADAA92.7000200@kencast.com
обсуждение исходный текст
Ответ на Re: PostgreSQL using the wrong Index  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Tom Lane wrote:
>
>
> This was just covered in excruciating detail yesterday ...
>
> You need to write
>     order by symbol desc, time desc limit 1
> to get the planner to recognize the connection to the sort order
> of this index.  Since you're only selecting one value of symbol,
> the actual output doesn't change.
>
Is this the right behavior (not a bug)? Is postgresql planning on changing
this soon?


Thanks

Wei

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

Предыдущее
От: Alex Stapleton
Дата:
Сообщение: Re: PostgreSQL using the wrong Index
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Index ot being used