Re: Combining two bitmap scans out performs a single regular index scan?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Combining two bitmap scans out performs a single regular index scan?
Дата
Msg-id 15505.1197146779@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Combining two bitmap scans out performs a single regular index scan?  (Mark Mielke <mark@mark.mielke.cc>)
Ответы Re: Combining two bitmap scans out performs a single regular index scan?
Список pgsql-performance
Mark Mielke <mark@mark.mielke.cc> writes:
> To find records after a certain time, I must do one of:
>     select * from icpric where audtdate > ? or (audtdate = ? and
> audttime > ?)

In recent releases (at least 8.2, don't remember about 8.1), a row
comparison is what you want:

    WHERE (auddate, adttime) > (?, ?)

            regards, tom lane

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

Предыдущее
От: Mark Mielke
Дата:
Сообщение: Combining two bitmap scans out performs a single regular index scan?
Следующее
От: Mark Mielke
Дата:
Сообщение: Re: Combining two bitmap scans out performs a single regular index scan?