Clear the messages tab when running EXPLAIN/EXPLAIN ANALYZE. Fixes #2974

This commit is contained in:
Murtuza Zabuawala 2018-01-03 15:19:56 +00:00 committed by Dave Page
parent e21f1e3291
commit c15d814268

View File

@ -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);
}, },