Re: inet <<= and indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: inet <<= and indexes
Дата
Msg-id 12247.1028692020@sss.pgh.pa.us
обсуждение исходный текст
Ответ на inet <<= and indexes  (Edwin Grubbs <egrubbs@rackspace.com>)
Ответы Re: inet <<= and indexes  (The Doctor What <docwhat@gerf.org>)
Список pgsql-general
Edwin Grubbs <egrubbs@rackspace.com> writes:
> I have a table with about 60,000 ips, and postgres will use the index to
> find the ips in a subnet if I type in a literal cidr block
> (e.g. address <<= '99.88.5.0'), but it will not use the index if the cidr
> block is in a variable (e.g. address <<= block).

Yup, the present implementation of that optimization depends on having
a constant to compare to.  Sorry ...

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: COPY
Следующее
От: Patrick Nelson
Дата:
Сообщение: Importing blob