EXPLAIN Yourself! Finding Query Planner Stalls Across DBMSes

📅 2026-08-24
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
研究通过轻量级代理搜索发现多个数据库管理系统中存在查询规划耗时过长的问题,分析了导致慢查询的原因,并提出了一套参数化查询病理测试集以增强规划器的鲁棒性。
📝 Abstract
Query planners are typically expected to produce optimized plans quickly, leading many researchers (including the authors of this paper) and practitioners to design systems that assume query planning is a low-cost operation. Using a lightweight agentic search, we show that this assumption does not always hold. Across seven DBMSes, including four commercial systems, we find at least one query per system that takes more than three minutes to plan. In addition to being slow to plan, such queries risk tying up database resources without performing useful work, creating a potential denial-of-service vector. We analyze the queries our search uncovers and compare how the seven systems respond to each pattern. We find that although the queries triggering slow planning are largely DBMS-specific, recurring pathologies involving correlated subqueries, CTE expansion, repeated subquery expressions, disjunctive joins, and constant folding affect multiple systems. We release our uncovered queries along with a curated suite of parameterized query pathologies that researchers and database engineers can use to test planner robustness. Overall, our results show that query planning cannot always be treated as a predictably inexpensive operation and that its latency and robustness deserve further attention from both database researchers and engineers.
Problem

Research questions and friction points this paper is trying to address.

query planner
latency
database resources
denial-of-service
pathologies
Innovation

Methods, ideas, or system contributions that make the work stand out.

agentic search
query planning latency
database management systems
planner robustness
🔎 Similar Papers