Get skip scan status
get_skip_scan_statusCheck if PostgreSQL 19's B-tree skip-scan optimization is enabled by default. For older versions, indicates unavailability and advises using a dedicated single-column index.
Instructions
Report whether PG 19's B-tree skip-scan optimisation is the planner default on this server. Never raises — driver-level errors surface as available=false. On PG ≤ 18 reports available=false and points the agent at the standard 'add a dedicated single-column index' fallback. Returns an object with available (bool), server_version_num (int), server_version, and detail (guidance string).
Example: get_skip_scan_status()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | Yes | ||
| available | Yes | ||
| server_version | Yes | ||
| server_version_num | Yes |