| От | Greg Stark |
|---|---|
| Тема | Re: 8.x index insert performance |
| Дата | |
| Msg-id | 87oe53hsfy.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | Re: 8.x index insert performance ("Merlin Moncure" <merlin.moncure@rcsonline.com>) |
| Список | pgsql-performance |
"Merlin Moncure" <merlin.moncure@rcsonline.com> writes: > > select * from sometable where somefield IS NULL won't work because IS > is > > not a nomally indexible operator. > > Ah, I didn't know that. So there is no real reason not to exclude null > values from all your indexes :). Reading Tom's recent comments > everything is clear now. There are other reasons. If you want a query like SELECT * FROM tab ORDER BY col LIMIT 10 to use an index on col then it can't exclude NULLs or else it wouldn't be useful. (Oracle actually has this problem, you frequently have to add WHERE col IS NOT NULL" in order to let it use an index.) -- greg
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера