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 4169.1045197929@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>)
Список pgsql-general
Greg Stark <gsstark@mit.edu> writes:
> Tom Lane <tgl@sss.pgh.pa.us> writes:
>> Actually you are barking up the wrong tree entirely; I'm pretty certain
>> that truncate_useless_pathkeys *doesn't* remove this pathkey, because it
>> should notice that it is relevant to the mergejoin condition.

> No, truncate_useless_pathkeys actually returns NULL.

Mmm, you're right.  It would accept the second pathkey if it got to
it --- but it doesn't, because the first pathkey (col1) isn't useful
for any merge condition.

Still, truncate_useless_pathkeys isn't the place to be dealing with this
issue.  It's not in a position to generate multiple interpretations of
the same path, which is what we are really after here.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: index scan with index cond on first column doesn't recognize sort order of second column
Следующее
От: Egyud Csaba
Дата:
Сообщение: Re: set returning functions in v7.3 - SORRY