HypoPG / hypopg

Hypothetical Indexes for PostgreSQL
https://hypopg.readthedocs.io
Other
1.39k stars 59 forks source link

Add a hypothetical default partition feature #31

Closed yuzupy closed 6 years ago

yuzupy commented 6 years ago

I modified hypo_get_qual_for_range() so that hypothetical default partitions can get its partition constraints from hypoTable struct, not catalogs. Also, I modified a way of size estimate for hypothetical partitions because the previous way cannot estimate hypothetical default partitions correctly. A new way is using hypoTable->tuples which is got by hypopg_analyze(). But if hypoTable->tuples has not set yet, size estimates will be done in the same way as before.

rjuju commented 6 years ago

Great, many thanks!