Re: matchingsel() and NULL-returning operators

2020-04-17 Thread Tom Lane
Nikita Glukhov writes: > I found a problem with selectivity estimation for NULL-returning operators. > matchingsel() is not ready to use as a restriction selectivity estimator for > operators like our jsonpath operators @? and @@, because it calls operator > function on values o

matchingsel() and NULL-returning operators

2020-04-17 Thread Nikita Glukhov
Hi, hackers! I found a problem with selectivity estimation for NULL-returning operators. matchingsel() is not ready to use as a restriction selectivity estimator for operators like our jsonpath operators @? and @@, because it calls operator function on values obtained from pg_statistic through