Move planner row-estimation tests to new planner_est.sql
David Rowley <drowley@postgresql.org>
Move planner row-estimation tests to new planner_est.sql Move explain_mask_costs() and the associated planner row-estimation tests from misc_functions.sql to a new regression test file, planner_est.sql. Previously, there wasn't an ideal home for such tests, likely as there were very few such tests due to width and selectivity estimations being too dependent on statistics and hardware. That's not always the case, as we have SupportRequestRows support functions. More such tests are possibly on the way, so let's create a better home so that we don't have to create the explain_mask_costs() function in each file we might have added such tests to. Author: Ilia Evdokimov <ilya.evdokimov@tantorlabs.com> Reviewed-by: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAApHDvphShGABn-3AoE36dTvGHW7gUpFSw0_ZZnH84wGCW3hHw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/misc_functions.out | modified | +0 −178 |
| src/test/regress/expected/planner_est.out | added | +186 −0 |
| src/test/regress/parallel_schedule | modified | +1 −1 |
| src/test/regress/sql/misc_functions.sql | modified | +0 −125 |
| src/test/regress/sql/planner_est.sql | added | +135 −0 |
Discussion
- Reduce planning time for large NOT IN lists containing NULL 19 messages · 2026-02-18 → 2026-03-19