best index for timestamp field null and not null queries

Поиск
Список
Период
Сортировка
От Jeremy Wells
Тема best index for timestamp field null and not null queries
Дата
Msg-id B3A5A722BF4D475FAB548FB93409C50E@gmail.com
обсуждение исходный текст
Ответы Re: best index for timestamp field null and not null queries  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Re: best index for timestamp field null and not null queries  (Romain Billon-Grand <billongrand@hotmail.fr>)
Список pgsql-novice
Hi, I've got a database table with a datetime column "deleted_at". I'll be running lots of queries against the table but they'll all be of the nature "deleted_at IS NULL" and "deleted_at IS NOT NULL".

What's the best index to place on this column? I assume if I add just a straight index then it'll index all of the values that go into it.

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

Предыдущее
От: Prima Chairunnanda
Дата:
Сообщение: Re: Hot Standby Lagging Behind
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: index refuses to build