| От | Tomas Vondra |
|---|---|
| Тема | Re: Using index for IS NULL query |
| Дата | |
| Msg-id | 491B7473.3050407@fuzzy.cz обсуждение исходный текст |
| Ответ на | Re: Using index for IS NULL query ("Vladimir Sitnikov" <sitnikov.vladimir@gmail.com>) |
| Список | pgsql-performance |
Well, you're obviously right - I didn't know this. I guess I've found that the index is not used for null values, and deduced somehow that NULL values are not stored in the index. Thanks, it's nice to find out a 'bug' before it's too late :-) regards Tomas > Are you sure NULL values are not stored? btree, gist and bitmap index > and search for NULL values. > > select amname, amindexnulls, amsearchnulls from pg_am; > > amname | amindexnulls | amsearchnulls > --------+--------------+--------------- > btree | t | t > hash | f | f > gist | t | t > gin | f | f > bitmap | t | t > (5 rows) > > > Sincerely yours, > Vladimir Sitnikov
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера