mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Provide real selectivity estimators for inet/cidr operators.
This patch fills in the formerly-stub networksel() and networkjoinsel() estimation functions. Those are used for << <<= >> >>= and && operators on inet/cidr types. The estimation is not perfect, certainly, because we rely on the existing statistics collected for the inet btree operators. But it's a long way better than nothing, and it's not clear that asking ANALYZE to collect separate stats for these operators would be a win. Emre Hasegeli, with reviews from Dilip Kumar and Heikki Linnakangas, and some further hacking by me
This commit is contained in:
parent
f770870d9e
commit
89840d7d3f
1 changed files with 977 additions and 3 deletions
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue