Re: strange nested loop row count estimates

2019-05-01 Thread Sergey Koposov
On Thu, 2019-05-02 at 01:05 -0400, Tom Lane wrote: > Sergey Koposov writes: > > > > On Thu, 2019-05-02 at 00:36 -0400, Tom Lane wrote: > > > > > > What sort of selectivity estimator have you got attached to that custom > > > operator? > > > > This is the code, but basically it is just a constan

Re: strange nested loop row count estimates

2019-05-01 Thread Tom Lane
Sergey Koposov writes: > On Thu, 2019-05-02 at 00:36 -0400, Tom Lane wrote: >> What sort of selectivity estimator have you got attached to that custom >> operator? > This is the code, but basically it is just a constant based on the search > radius (which is the leftmost float argument of the op

Re: strange nested loop row count estimates

2019-05-01 Thread Sergey Koposov
On Thu, 2019-05-02 at 00:36 -0400, Tom Lane wrote: > Sergey Koposov 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 > > do

Re: strange nested loop row count estimates

2019-05-01 Thread Tom Lane
Sergey Koposov 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 estimato

strange nested loop row count estimates

2019-05-01 Thread Sergey Koposov
Hi, 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. Hopefully somebody here can shed some light on it, or confi