Write & reuse SQL
Read query plans and SQL diagnostics
Review declared estimated plans, database diagnostics, and metadata checks with their actual limits.
What this feature does
Request a supported plan or run a check, then use its labels and source location to understand the result.
When to use it
Use this to inspect a supported plan or understand a parser, metadata, or server diagnostic.
Before you start
Connect to an engine that offers the requested plan. Actual plans can run the SQL.
Default shortcuts
Plan types and entries depend on the engine; the local-parser shortcut does not generate a database execution plan.
| Action | Windows / Linux | macOS | Focus and effect |
|---|---|---|---|
| Open a query or analysis plan | No dedicated default | No dedicated default | Choose a plan type exposed by the editor/execution menu for the current engine; there is no common dedicated default. |
| Check SQL with the local parser | Ctrl+Alt+V | ⌘+⌥+V | Use where the editor exposes SQLGlot validation; local parsing does not prove server acceptance or query safety. |
| AI SQL diagnosis / optimization | No dedicated default | No dedicated default | Choose the corresponding editor AI command and use its current menu binding; AI explanation and database plans are separate outputs. |
- Settings → Shortcuts shows configurable bindings; customized keys take precedence. Fixed dialog keys and mouse gestures may be managed by their own controls.
- On macOS, ⌘ means Command and ⌥ means Option. Function keys may require Fn. Delete means forward delete (often Fn+⌫ on a compact Mac keyboard); use the menu when Insert is unavailable.
How to use it
- Check whether the selected engine lists the requested plan type.
- Open the SQL editor context menu and choose an available plan action.
- Read the plan type, dialect, and server diagnostics together.
- Use the result action to return to its source statement.
What to expect
The result is labeled with the plan type and its source statement.
Limits and safety
- Plan availability is dialect-specific; an actual plan can execute the original query.
- Local parsing and metadata checks do not replace server validation or a safety review.
If something goes wrong
- If plan actions are absent, check the selected dialect, driver, server version, and required metadata permissions.
- Before requesting an actual plan, read the engine-specific warning and confirm the statement is safe to execute.