mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 08:24:43 -05:00
Clear the messages tab when running EXPLAIN/EXPLAIN ANALYZE. Fixes #2974
This commit is contained in:
committed by
Dave Page
parent
e21f1e3291
commit
c15d814268
@@ -36,6 +36,7 @@ let queryToolActions = {
|
|||||||
let buffers = this._buffers();
|
let buffers = this._buffers();
|
||||||
let timing = this._timing();
|
let timing = this._timing();
|
||||||
let explainAnalyzeQuery = `EXPLAIN (FORMAT JSON, ANALYZE ON, VERBOSE ${verbose}, COSTS ${costEnabled}, BUFFERS ${buffers}, TIMING ${timing}) `;
|
let explainAnalyzeQuery = `EXPLAIN (FORMAT JSON, ANALYZE ON, VERBOSE ${verbose}, COSTS ${costEnabled}, BUFFERS ${buffers}, TIMING ${timing}) `;
|
||||||
|
this._clearMessageTab();
|
||||||
sqlEditorController.execute(explainAnalyzeQuery);
|
sqlEditorController.execute(explainAnalyzeQuery);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -44,6 +45,7 @@ let queryToolActions = {
|
|||||||
let verbose = this._verbose();
|
let verbose = this._verbose();
|
||||||
|
|
||||||
let explainQuery = `EXPLAIN (FORMAT JSON, ANALYZE OFF, VERBOSE ${verbose}, COSTS ${costEnabled}, BUFFERS OFF, TIMING OFF) `;
|
let explainQuery = `EXPLAIN (FORMAT JSON, ANALYZE OFF, VERBOSE ${verbose}, COSTS ${costEnabled}, BUFFERS OFF, TIMING OFF) `;
|
||||||
|
this._clearMessageTab();
|
||||||
sqlEditorController.execute(explainQuery);
|
sqlEditorController.execute(explainQuery);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user