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