cost_guard
Planner-hook guard that rejects statements whose estimated cost exceeds a configured threshold.
cost_guard · Planner-hook guard that rejects statements whose estimated cost exceeds a configured threshold.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101870 | cost_guard | cost_guard | 1.0 | ADMIN | C |
PostgreSQL · 11, 12, 13, 14, 15, 16, 17, 18
Usage
Sources:
cost_guard Planner-hook guard that rejects statements whose estimated cost exceeds a configured threshold.
Enablement
Install the files for the intended server, then create cost_guard in the target database:
Core Workflow
The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.
Main Objects
The official sources define the extension surface dynamically or through provider tooling; inspect the installed version before granting access.
Operations and Boundaries
- The verified PostgreSQL-major evidence covers 11, 12, 13, 14, 15, 16, 17, 18; do not infer unlisted majors.