pathprobe
PostgreSQL planner path probing extension for planner-aware SQL agents
pathprobe · PostgreSQL planner path probing extension for planner-aware SQL agents
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (pathprobe.control)
- Official extension SQL (pathprobe–1.1.sql)
pathprobe — pathprobe is a diagnostic extension for PostgreSQL planner work. It shows not only the final plan chosen by EXPLAIN, but also the path-level decisions made on the way: which paths were skipped, rejected, accepted, displaced, or survived. Use it when collecting or interpreting the corresponding PostgreSQL statistics. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
pathprobe(query text)is an extension function and returnstext.pathprobe_json(query text)is an extension function and returnstext.pathprobe_propose(query text, spec text)is an extension function and returnstext.pathprobe_propose_json(query text, spec text)is an extension function and returnstext.
Requirements and Caveats
- The reviewed control file declares default version
1.1. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.