Adaptive query optimization for PostgreSQL
Slides and material for MySQL and MariaDB query optimization.
A Relational Optimizer and Executor