guides
What Is a Learned Query Optimizer? Why PostgreSQL Picks Slow Plans and How to Steer It
A query optimizer turns your SQL into a plan: which table to read first, which index to use, how to join one table to the next. A learned query optimizer is one that …