Sergey Koposov <skoposov@xxxxxxx> writes: > I'm currently trying to understand the expected row counts for a query involving a nested loop join and bitmap index scan > on the functional index and a custom operator. And the numbers that I see don't make sense to me currently. What sort of selectivity estimator have you got attached to that custom operator? regards, tom lane