explain
Retrieve a PostgreSQL execution plan for a SQL query. Set analyze to true for actual execution results (requires server permission); false returns cost estimates to identify performance bottlenecks.
Instructions
获取 JSON 执行计划。analyze=false 只估算,true 会执行且需服务端许可。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| analyze | No |