| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера