SqlOtter
← All documentationWrite & reuse SQL

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.

Plan-reading illustration distinguishing estimated plans, actual execution, and diagnostics.
Conceptual workflow diagram; this is not a captured SqlOtter screen. Release-matched screenshots are still pending.

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.

Default shortcuts
ActionWindows / LinuxmacOSFocus and effect
Open a query or analysis planNo dedicated defaultNo dedicated defaultChoose a plan type exposed by the editor/execution menu for the current engine; there is no common dedicated default.
Check SQL with the local parserCtrl+Alt+V⌘+⌥+VUse where the editor exposes SQLGlot validation; local parsing does not prove server acceptance or query safety.
AI SQL diagnosis / optimizationNo dedicated defaultNo dedicated defaultChoose 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

  1. Check whether the selected engine lists the requested plan type.
  2. Open the SQL editor context menu and choose an available plan action.
  3. Read the plan type, dialect, and server diagnostics together.
  4. 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.