Re: Why order by column not using index with distinct keyword inselect clause?

Поиск
Список
Период
Сортировка
От Geoff Winkless
Тема Re: Why order by column not using index with distinct keyword inselect clause?
Дата
Msg-id CAEzk6fdjd7SLk+OvHqTErMwTRs3QvdaUg+T6dY2TrK0zZG6w4A@mail.gmail.com
обсуждение исходный текст
Ответ на Why order by column not using index with distinct keyword in selectclause?  (Arup Rakshit <ar@zeit.io>)
Список pgsql-general
On Tue, 11 Sep 2018 at 13:56, Arup Rakshit <ar@zeit.io> wrote:
I have define a simple B Tree index on column *country* for users table. I don’t understand why the order by column not using the index scan when using *distinct* keyword in the select clause. Can anyone explain what is happening here?

Bear in mind that index skip scans aren't yet implemented, which (unless I've missed the point) seems to be what you're expecting to help here.


Geoff

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why order by column not using index with distinct keyword in select clause?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: scram-sha-256 authentication broken in FIPS mode