Matt Nuzum <matt.followers@xxxxxxxxx> writes: > To me, these three queries seem identical... why doesn't the first one > (simplest to understand and write) go the same speed as the third one? This is the standard problem that the planner has to guess about the selectivity of inequalities involving non-constants (like now()). The guesses are set up so that a one-sided inequality will use a seqscan while a range constraint will use an indexscan. See the pgsql-performance archives for other ways of persuading it that an indexscan is a good idea. regards, tom lane