Re: Query planning around one key of a multi-column index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query planning around one key of a multi-column index
Дата
Msg-id 18012.1576734429@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query planning around one key of a multi-column index  (Wells Oliver <wells.oliver@gmail.com>)
Список pgsql-admin
Wells Oliver <wells.oliver@gmail.com> writes:
> Is it really always true that querying off any column that's not the first
> column of a multi-column index will NOT use that index?

Nope.  The planner will consider that, though in most cases it's likely
to estimate that there's no benefit to using the index in such cases.
Try reading the *actual* docs, not some third-party site:

https://www.postgresql.org/docs/current/indexes-multicolumn.html

            regards, tom lane



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

Предыдущее
От: pratmeht
Дата:
Сообщение: Re: DDLs of a Function
Следующее
От: Douglas Reed
Дата:
Сообщение: Problem with Altering a table column