Richard Yen <dba@richyen.com> writes:
> You guys are right. I tried "Miller" and gave me the same result. Is
> there any way to tune this so that for the common last names, the
> query run time doesn't jump from <1s to >300s?
If the planner's estimation is that far off then there must be something
very weird about the table statistics, but you haven't given us any clue
what.
regards, tom lane