Re: sequential scan when using bigint value

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: sequential scan when using bigint value
Дата
Msg-id 24268.1079709422@sss.pgh.pa.us
обсуждение исходный текст
Ответ на sequential scan when using bigint value  (David Garamond <lists@zara.6.isreserved.com>)
Список pgsql-general
David Garamond <lists@zara.6.isreserved.com> writes:
> I have a table of 2mil records. The table consists of two columns, id
> (BYTEA/GUID, PK) and i (INT, UNIQUE INDEX). Could someone explain why,
> when using a bigint value like this:
> Postgres immediately switches from index scan to seq scan?

Cross-data-type comparisons aren't indexable.  (At least not in current
releases.  Your examples do work in CVS tip.)

            regards, tom lane

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

Предыдущее
От: Carmen Gloria Sepulveda Dedes
Дата:
Сообщение: 7.4.2 on Solaris 9 - Error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: "People near me" query