Brian Herlihy <btherl(at)yahoo(dot)com(dot)au> writes:
> I am having trouble understanding why a seqscan is chosen for this query.
As far as anyone can see from this output, the planner's decisions are
correct: it prefers the plans with the smaller estimated cost. If you
want us to take an interest, provide some more context --- EXPLAIN
ANALYZE output for starters.
regards, tom lane