Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> writes:
> Do we actually check how many duplicates are there during planning?
Certainly that's part of the planner's cost estimates ... but it's
only as good as the planner's statistical knowledge.
regards, tom lane