Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/en_US/query_tool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ the drop down on the right side of *Explain Analyze* button in the toolbar.

Please note that pgAdmin generates the *Explain [Analyze]* plan in JSON format.

**Note**: If multiple queries are present and none is selected, *Explain [Analyze]* runs the query located at the cursor position.

On successful generation of *Explain* plan, it will create three tabs/panels
under the Explain panel.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ export default function Query({onTextSelect, setQtStatePartial}) {
const regex = /\$SELECTION\$/gi;
query = macroSQL.replace(regex, query);
external = true;
} else if(executeCursor) {
/* Execute query at cursor position */
} else if(executeCursor || explainObject) {
/* Execute query at cursor position or explain query at cursor position */
query = query || editor.current?.getQueryAt(editor.current?.state.selection.head).value || '';
} else {
/* Normal execution */
Expand Down
Loading