Re: btree/gist index on date and searching using BETWEEN or >= and <=

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: btree/gist index on date and searching using BETWEEN or >= and <=
Дата
Msg-id 2697607.1694477294@sss.pgh.pa.us
обсуждение исходный текст
Ответ на btree/gist index on date and searching using BETWEEN or >= and <=  (Wells Oliver <wells.oliver@gmail.com>)
Список pgsql-admin
Wells Oliver <wells.oliver@gmail.com> writes:
> Is there a meaningful difference index/plan-wise searching where DATE
> BETWEEN x AND y versus DATE >= x AND DATE <= y?

Nope.

> Secondly, would btree be the best index for such a column, or gist/etc?

btree.  gist can sort of do scalar-inequality searches, but they're
not its strength.

            regards, tom lane



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

Предыдущее
От: Wells Oliver
Дата:
Сообщение: btree/gist index on date and searching using BETWEEN or >= and <=
Следующее
От: Rui DeSousa
Дата:
Сообщение: Re: percentile_cont from array?