potentialpaper

BranchFence: Closing Recoverable Query-Planning Hazards under Fixed Native Exposure

Anonymous authors

ICLR 2027

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. On JOB query 17a, PostgreSQL 16.2 selects a plan that spills 248 MB and runs for 4.2 s even though its current candidate set already contains a nonspilling continuation that finishes in 0.9 s. This missed escape is common in held-out planner traces: 215/264 JOB, 274/356 TPC-H SF-100, and 467/628 TPC-DS SF-100 failure-bearing decisions expose a demonstrated nonviolating continuation for another native candidate. The interval before that alternative disappears is a recoverable hazard window. BranchFence acts before it closes: the controller preserves PostgreSQL's enumerator, rolls up to five exposed actions through eight deterministic planner transitions, averages continuation-cost predictions, penalizes peak spill/timeout/OOM/invalidity risk, and defers when the selected action's peak-risk score has high binary entropy. Across five training seeds and three split seeds, BranchFence reaches normalized mean latency 0.548/0.587/0.617 on JOB/TPC-H/TPC-DS, versus 0.600/0.628/0.650 for an architecture-matched H=0H=0 controller; workload-specific failure events fall from 382 to 263, 41 to 23, and 238 to 149. The paired latency and failure intervals exclude zero on every workload, the ordering persists under five-fold template holdout, and spill-prone JOB queries gain a median 3.8×3.8\times speedup with 12.2 ms total planning time per query. Spill and timeout risk can therefore be intercepted at the planning decision where PostgreSQL still exposes a safer branch, producing reliability gains through targeted reranking.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
14 Sep 2026ICLR 2027submittedICLR 2027Desk rejectedreviews ↓[1]PDF[1]
Missing a version?

ICLR 2027

Desk rejected · OpenReview

Updated 24 Nov 2026, 16:58 UTC.

The venue hasn't published any reviews yet.

Missing a submission?

Loading the discussion…