Post

Or what about cases where there are no statistics at all? Like materialized CTEs, temporary tables, or computed expressions in WHERE clauses. The planner falls back to hardcoded constants. 0.5% selectivity for equality. 33% for ranges. Good luck.

0 reposts1 like

You just might be onto something 🤣 I've been looking for something for the back of the t-shirts and I think we have a strong candidate Equality: 0.5% Ranges: 33% May your indexes be with you