Joe <dev(at)freedomcircle(dot)net> writes:
> Are you saying the planner is datatype-agnostic
Certainly, but your other concerns don't follow from that. The issue at
hand here is whether it's worth expending cycles on every query to try
to detect a situation that only holds for a few.
regards, tom lane