Re: Query composite index range in an efficient way

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query composite index range in an efficient way
Дата
Msg-id 3289.1234886019@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query composite index range in an efficient way  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-performance
Gregory Stark <stark@enterprisedb.com> writes:
> Havasv�lgyi Ott� <havasvolgyi.otto@gmail.com> writes:
>> I also tried Row constructors with a Between expression, but in this case
>> Postgres handled the elements of the row independently, and this led to
>> false query result.

> What version of Postgres is this? row constructors were fixed a long time ago
> to not do that and the main benefit of that was precisely that this type of
> expression could use a multi-column index effectively.

That depends on whether you think 8.2 is "a long time ago" ;-).  But
yeah, row comparisons in a modern Postgres version are the way to handle
this.

            regards, tom lane

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

Предыдущее
От: Jörg Kiegeland
Дата:
Сообщение: Cannot interpret EXPLAIN
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Query composite index range in an efficient way