Re: index scan with index cond on first column doesn't recognize sort order of second column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: index scan with index cond on first column doesn't recognize sort order of second column
Дата
Msg-id 1915.1045178941@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: index scan with index cond on first column doesn't recognize sort order of second column  (Greg Stark <gsstark@mit.edu>)
Ответы Re: index scan with index cond on first column doesn't recognize sort order of second column  (Greg Stark <gsstark@mit.edu>)
Список pgsql-general
Greg Stark <gsstark@mit.edu> writes:
> I'm not clear on what truncate_useless_pathkeys is doing.

It's throwing away pathkey info that isn't relevant for the current
query (and would cause the planner to consider a multi-column-index
scan as better-ordered than a scan of an index with fewer columns,
when no such thing is true if the extra columns aren't relevant).

> If it were changed to just keep the suffix would that break other things?

Yes, that would be completely backwards.

            regards, tom lane

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

Предыдущее
От: Dennis Gearon
Дата:
Сообщение: 'Universal' schedule table defintion
Следующее
От: Tom Lane
Дата:
Сообщение: Re: set returning functions in v7.3