Small AI model cuts Postgres benchmark latency 44.7%

Rohan Bansal trained a 4B model to propose PostgreSQL query plans, meaning the execution routes a database can choose for a request. The starting model could not produce a plan for 99 of 113 join-heavy queries; supervised fine-tuning and agentic reinforcement learning taught it from examples and measured software performance. Faster plans could reduce database delay for some workloads without requiring changes to application queries. Bansal reports a 44.7% latency reduction across the full 113-query benchmark.