best index for timestamp field null and not null queries - Mailing list pgsql-novice

From Jeremy Wells
Subject best index for timestamp field null and not null queries
Date
Msg-id B3A5A722BF4D475FAB548FB93409C50E@gmail.com
Whole thread Raw
Responses 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>)
List 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 by date:

Previous
From: Prima Chairunnanda
Date:
Subject: Re: Hot Standby Lagging Behind
Next
From: Bruce Momjian
Date:
Subject: Re: index refuses to build