Conversation

Replying to
An interesting debate is whether you want the DBMS optimizer to spend CPU cycles on fixing problems that query authors can avoid. Of course, tool generated queries are more likely to have such problems and also to generate huge queries for which the checks are costly.
1
2
In practice the cases that people truly care about tend to get fixed. In general obviousness does not predict real world relevance. *How* somebody really came up with their example where optimizer fails to do obvious algebraic reduction (or whatever) is absolutely relevant IMO.
1
1