I haven't come up with any great ideas for this one. It might be interestingto compare the explain analyze output from the distinct on query withand without seqscans enabled.