@@ -218,7 +218,7 @@ FROM crdb_internal.statement_activity
218218 // Format string "2006-01-02 15:04:05.00" is a golang-specific string
219219 it , err := ie .QueryIteratorEx (
220220 ctx ,
221- "activity-min-ts" ,
221+ "console-combined-stmts- activity-min-ts" ,
222222 nil ,
223223 sessiondata .NodeUserSessionDataOverride ,
224224 fmt .Sprintf (queryWithPlaceholders , zeroDate .Format ("2006-01-02 15:04:05.00" ), testingKnobs .GetAOSTClause ()))
@@ -280,7 +280,7 @@ func getTotalRuntimeSecs(
280280 getRuntime := func (table string ) (float32 , error ) {
281281 it , err := ie .QueryIteratorEx (
282282 ctx ,
283- fmt .Sprintf (`%s-total-runtime` , table ),
283+ fmt .Sprintf (`console-combined-stmts- %s-total-runtime` , table ),
284284 nil ,
285285 sessiondata .NodeUserSessionDataOverride ,
286286 fmt .Sprintf (`
@@ -740,8 +740,9 @@ func getIterator(
740740 whereClause ,
741741 aostClause ,
742742 orderAndLimit )
743+ opName := fmt .Sprintf (`console-combined-stmts-%s` , queryInfo )
743744
744- it , err := ie .QueryIteratorEx (ctx , queryInfo , nil ,
745+ it , err := ie .QueryIteratorEx (ctx , opName , nil ,
745746 sessiondata .NodeUserSessionDataOverride , query , args ... )
746747 if err != nil {
747748 return it , srverrors .ServerError (ctx , err )
@@ -917,7 +918,7 @@ GROUP BY
917918 var err error
918919
919920 if activityTableHasAllData {
920- it , err = ie .QueryIteratorEx (ctx , "stmts-activity-for-txn" , nil ,
921+ it , err = ie .QueryIteratorEx (ctx , "console-combined- stmts-activity-for-txn" , nil ,
921922 sessiondata .NodeUserSessionDataOverride , fmt .Sprintf (`
922923SELECT fingerprint_id,
923924 transaction_fingerprint_id,
@@ -948,7 +949,7 @@ GROUP BY
948949 queryFormat ,
949950 "crdb_internal.statement_statistics_persisted" + tableSuffix ,
950951 whereClause )
951- it , err = ie .QueryIteratorEx (ctx , "stmts-persisted-for-txn" , nil ,
952+ it , err = ie .QueryIteratorEx (ctx , "console-combined- stmts-persisted-for-txn" , nil ,
952953 sessiondata .NodeUserSessionDataOverride , query , args ... )
953954
954955 if err != nil {
@@ -965,7 +966,7 @@ GROUP BY
965966 }
966967 query = fmt .Sprintf (queryFormat , "crdb_internal.statement_statistics" , whereClause )
967968
968- it , err = ie .QueryIteratorEx (ctx , "stmts-with-memory-for-txn" , nil ,
969+ it , err = ie .QueryIteratorEx (ctx , "console-combined- stmts-with-memory-for-txn" , nil ,
969970 sessiondata .NodeUserSessionDataOverride , query , args ... )
970971
971972 if err != nil {
@@ -1345,7 +1346,7 @@ LIMIT $%d`
13451346 args = append (args , limit )
13461347
13471348 if activityTableHasAllData {
1348- it , err = ie .QueryIteratorEx (ctx , "combined-stmts-activity-details-by-aggregated-timestamp" , nil ,
1349+ it , err = ie .QueryIteratorEx (ctx , "console- combined-stmts-activity-details-by-aggregated-timestamp" , nil ,
13491350 sessiondata .NodeUserSessionDataOverride ,
13501351 fmt .Sprintf (`
13511352SELECT aggregated_ts,
@@ -1375,7 +1376,7 @@ LIMIT $%d`, whereClause, len(args)),
13751376 whereClause ,
13761377 len (args ))
13771378
1378- it , err = ie .QueryIteratorEx (ctx , "combined-stmts-persisted-details-by-aggregated-timestamp" , nil ,
1379+ it , err = ie .QueryIteratorEx (ctx , "console- combined-stmts-persisted-details-by-aggregated-timestamp" , nil ,
13791380 sessiondata .NodeUserSessionDataOverride , query , args ... )
13801381
13811382 if err != nil {
@@ -1388,7 +1389,7 @@ LIMIT $%d`, whereClause, len(args)),
13881389 if ! it .HasResults () {
13891390 err = closeIterator (it , err )
13901391 query = fmt .Sprintf (queryFormat , "crdb_internal.statement_statistics" , whereClause , len (args ))
1391- it , err = ie .QueryIteratorEx (ctx , "combined-stmts-details-by-aggregated-timestamp-with-memory" , nil ,
1392+ it , err = ie .QueryIteratorEx (ctx , "console- combined-stmts-details-by-aggregated-timestamp-with-memory" , nil ,
13921393 sessiondata .NodeUserSessionDataOverride , query , args ... )
13931394 if err != nil {
13941395 return nil , srverrors .ServerError (ctx , err )
@@ -1444,7 +1445,7 @@ func getExplainPlanFromGist(ctx context.Context, ie *sql.InternalExecutor, planG
14441445 const query = `SELECT crdb_internal.decode_plan_gist($1)`
14451446 args = append (args , planGist )
14461447
1447- it , err := ie .QueryIteratorEx (ctx , "combined-stmts-details-get-explain-plan" , nil ,
1448+ it , err := ie .QueryIteratorEx (ctx , "console- combined-stmts-details-get-explain-plan" , nil ,
14481449 sessiondata .NodeUserSessionDataOverride , query , args ... )
14491450
14501451 if err != nil {
@@ -1543,7 +1544,7 @@ LIMIT $%d`
15431544 }()
15441545
15451546 if activityTableHasAllData {
1546- it , iterErr = ie .QueryIteratorEx (ctx , "combined-stmts-activity-details-by-plan-hash" , nil ,
1547+ it , iterErr = ie .QueryIteratorEx (ctx , "console- combined-stmts-activity-details-by-plan-hash" , nil ,
15471548 sessiondata .NodeUserSessionDataOverride , fmt .Sprintf (`
15481549SELECT plan_hash,
15491550 (statistics -> 'statistics' -> 'planGists' ->> 0) AS plan_gist,
@@ -1572,7 +1573,7 @@ LIMIT $%d`, whereClause, len(args)), args...)
15721573 "crdb_internal.statement_statistics_persisted" + tableSuffix ,
15731574 whereClause ,
15741575 len (args ))
1575- it , iterErr = ie .QueryIteratorEx (ctx , "combined-stmts-persisted-details-by-plan-hash" , nil ,
1576+ it , iterErr = ie .QueryIteratorEx (ctx , "console- combined-stmts-persisted-details-by-plan-hash" , nil ,
15761577 sessiondata .NodeUserSessionDataOverride , query , args ... )
15771578 if iterErr != nil {
15781579 return nil , srverrors .ServerError (ctx , err )
@@ -1584,7 +1585,7 @@ LIMIT $%d`, whereClause, len(args)), args...)
15841585 if ! it .HasResults () {
15851586 err = closeIterator (it , err )
15861587 query = fmt .Sprintf (queryFormat , "crdb_internal.statement_statistics" , whereClause , len (args ))
1587- it , iterErr = ie .QueryIteratorEx (ctx , "combined-stmts-details-by-plan-hash-with-memory" , nil ,
1588+ it , iterErr = ie .QueryIteratorEx (ctx , "console- combined-stmts-details-by-plan-hash-with-memory" , nil ,
15881589 sessiondata .NodeUserSessionDataOverride , query , args ... )
15891590 if iterErr != nil {
15901591 return nil , srverrors .ServerError (ctx , err )
0 commit comments