Re: Implement missing join selectivity estimation for range types
Tomas Vondra <tomas.vondra@enterprisedb.com>
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Mahmoud Sakr <mahmoud.sakr@ulb.be>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: SCHOEMANS Maxime <Maxime.Schoemans@ulb.be>,
Diogo Repas <diogo.repas@gmail.com>, Luo Zhicheng <zhicheng.luo@ulb.be>,
Andrey Lepikhov <a.lepikhov@postgrespro.ru>
Date: 2023-01-18T18:07:23Z
Lists: pgsql-hackers
Also, calc_hist_selectivity_contains in multirangetypes_selfuncs.c needs a proper comment, not just "this is a copy from rangetypes". However, it seems the two functions are exactly the same. Would the functions diverge in the future? If not, maybe there should be just a single shared function? regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company