Mathematical Approaches for Selectivity Error Correction
In previous posts, post1 and post2, I demonstrated that it’s possible to continuously count the actual rows from EXPLAIN ANALYZE with an overhead of about 2.0%.
The next step is to examine methods for correcting the selectivity (or cardinality) estimation results.