Skip to content

Commit

Permalink
performance_schema: revised according to liuqi&cuiqiu's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nieyy committed Feb 4, 2016
1 parent 8ff5322 commit bdc432c
Show file tree
Hide file tree
Showing 2 changed files with 543 additions and 1,224 deletions.
313 changes: 313 additions & 0 deletions perfschema/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,91 @@ var PerfSchemaTables = []string{
}

// ColumnSetupActors contains the column name definitions for table setup_actors, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.setup_actors (
// HOST CHAR(60) NOT NULL DEFAULT '%',
// USER CHAR(32) NOT NULL DEFAULT '%',
// ROLE CHAR(16) NOT NULL DEFAULT '%',
// ENABLED ENUM('YES','NO') NOT NULL DEFAULT 'YES',
// HISTORY ENUM('YES','NO') NOT NULL DEFAULT 'YES');
var ColumnSetupActors = []string{"HOST", "USER", "ROLE", "ENABLED", "HISTORY"}

// ColumnSetupObjects contains the column name definitions for table setup_objects, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.setup_objects (
// OBJECT_TYPE ENUM('EVENT','FUNCTION','TABLE') NOT NULL DEFAULT 'TABLE',
// OBJECT_SCHEMA VARCHAR(64) DEFAULT '%',
// OBJECT_NAME VARCHAR(64) NOT NULL DEFAULT '%',
// ENABLED ENUM('YES','NO') NOT NULL DEFAULT 'YES',
// TIMED ENUM('YES','NO') NOT NULL DEFAULT 'YES');
var ColumnSetupObjects = []string{"OBJECT_TYPE", "OBJECT_SCHEMA", "OBJECT_NAME", "ENABLED", "TIMED"}

// ColumnSetupInstruments contains the column name definitions for table setup_instruments, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.setup_instruments (
// NAME VARCHAR(128) NOT NULL,
// ENABLED ENUM('YES','NO') NOT NULL,
// TIMED ENUM('YES','NO') NOT NULL);
var ColumnSetupInstruments = []string{"NAMED", "ENABLED", "TIMED"}

// ColumnSetupConsumers contains the column name definitions for table setup_consumers, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.setup_consumers (
// NAME VARCHAR(64) NOT NULL,
// ENABLED ENUM('YES','NO') NOT NULL);
var ColumnSetupConsumers = []string{"NAMED", "ENABLED"}

// ColumnSetupTimers contains the column name definitions for table setup_timers, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.setup_timers (
// NAME VARCHAR(64) NOT NULL,
// TIMER_NAME ENUM('NANOSECOND','MICROSECOND','MILLISECOND') NOT NULL);
var ColumnSetupTimers = []string{"NAME", "TIMER_NAME"}

// ColumnStmtsCurrent contains the column name definitions for table events_statements_current, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.events_statements_current (
// THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// END_EVENT_ID BIGINT(20) UNSIGNED,
// EVENT_NAME VARCHAR(128) NOT NULL,
// SOURCE VARCHAR(64),
// TIMER_START BIGINT(20) UNSIGNED,
// TIMER_END BIGINT(20) UNSIGNED,
// TIMER_WAIT BIGINT(20) UNSIGNED,
// LOCK_TIME BIGINT(20) UNSIGNED NOT NULL,
// SQL_TEXT LONGTEXT,
// DIGEST VARCHAR(32),
// DIGEST_TEXT LONGTEXT,
// CURRENT_SCHEMA VARCHAR(64),
// OBJECT_TYPE VARCHAR(64),
// OBJECT_SCHEMA VARCHAR(64),
// OBJECT_NAME VARCHAR(64),
// OBJECT_INSTANCE_BEGIN BIGINT(20) UNSIGNED,
// MYSQL_ERRNO INT(11),
// RETURNED_SQLSTATE VARCHAR(5),
// MESSAGE_TEXT VARCHAR(128),
// ERRORS BIGINT(20) UNSIGNED NOT NULL,
// WARNINGS BIGINT(20) UNSIGNED NOT NULL,
// ROWS_AFFECTED BIGINT(20) UNSIGNED NOT NULL,
// ROWS_SENT BIGINT(20) UNSIGNED NOT NULL,
// ROWS_EXAMINED BIGINT(20) UNSIGNED NOT NULL,
// CREATED_TMP_DISK_TABLES BIGINT(20) UNSIGNED NOT NULL,
// CREATED_TMP_TABLES BIGINT(20) UNSIGNED NOT NULL,
// SELECT_FULL_JOIN BIGINT(20) UNSIGNED NOT NULL,
// SELECT_FULL_RANGE_JOIN BIGINT(20) UNSIGNED NOT NULL,
// SELECT_RANGE BIGINT(20) UNSIGNED NOT NULL,
// SELECT_RANGE_CHECK BIGINT(20) UNSIGNED NOT NULL,
// SELECT_SCAN BIGINT(20) UNSIGNED NOT NULL,
// SORT_MERGE_PASSES BIGINT(20) UNSIGNED NOT NULL,
// SORT_RANGE BIGINT(20) UNSIGNED NOT NULL,
// SORT_ROWS BIGINT(20) UNSIGNED NOT NULL,
// SORT_SCAN BIGINT(20) UNSIGNED NOT NULL,
// NO_INDEX_USED BIGINT(20) UNSIGNED NOT NULL,
// NO_GOOD_INDEX_USED BIGINT(20) UNSIGNED NOT NULL,
// NESTING_EVENT_ID BIGINT(20) UNSIGNED,
// NESTING_EVENT_TYPE ENUM('TRANSACTION','STATEMENT','STAGE'),
// NESTING_EVENT_LEVEL INT(11));
var ColumnStmtsCurrent = []string{
"THREAD_ID",
"EVENT_ID",
Expand Down Expand Up @@ -118,6 +188,49 @@ var ColumnStmtsCurrent = []string{
}

// ColumnStmtsHistory contains the column name definitions for table events_statements_history, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.events_statements_history (
// THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// END_EVENT_ID BIGINT(20) UNSIGNED,
// EVENT_NAME VARCHAR(128) NOT NULL,
// SOURCE VARCHAR(64),
// TIMER_START BIGINT(20) UNSIGNED,
// TIMER_END BIGINT(20) UNSIGNED,
// TIMER_WAIT BIGINT(20) UNSIGNED,
// LOCK_TIME BIGINT(20) UNSIGNED NOT NULL,
// SQL_TEXT LONGTEXT,
// DIGEST VARCHAR(32),
// DIGEST_TEXT LONGTEXT,
// CURRENT_SCHEMA VARCHAR(64),
// OBJECT_TYPE VARCHAR(64),
// OBJECT_SCHEMA VARCHAR(64),
// OBJECT_NAME VARCHAR(64),
// OBJECT_INSTANCE_BEGIN BIGINT(20) UNSIGNED,
// MYSQL_ERRNO INT(11),
// RETURNED_SQLSTATE VARCHAR(5),
// MESSAGE_TEXT VARCHAR(128),
// ERRORS BIGINT(20) UNSIGNED NOT NULL,
// WARNINGS BIGINT(20) UNSIGNED NOT NULL,
// ROWS_AFFECTED BIGINT(20) UNSIGNED NOT NULL,
// ROWS_SENT BIGINT(20) UNSIGNED NOT NULL,
// ROWS_EXAMINED BIGINT(20) UNSIGNED NOT NULL,
// CREATED_TMP_DISK_TABLES BIGINT(20) UNSIGNED NOT NULL,
// CREATED_TMP_TABLES BIGINT(20) UNSIGNED NOT NULL,
// SELECT_FULL_JOIN BIGINT(20) UNSIGNED NOT NULL,
// SELECT_FULL_RANGE_JOIN BIGINT(20) UNSIGNED NOT NULL,
// SELECT_RANGE BIGINT(20) UNSIGNED NOT NULL,
// SELECT_RANGE_CHECK BIGINT(20) UNSIGNED NOT NULL,
// SELECT_SCAN BIGINT(20) UNSIGNED NOT NULL,
// SORT_MERGE_PASSES BIGINT(20) UNSIGNED NOT NULL,
// SORT_RANGE BIGINT(20) UNSIGNED NOT NULL,
// SORT_ROWS BIGINT(20) UNSIGNED NOT NULL,
// SORT_SCAN BIGINT(20) UNSIGNED NOT NULL,
// NO_INDEX_USED BIGINT(20) UNSIGNED NOT NULL,
// NO_GOOD_INDEX_USED BIGINT(20) UNSIGNED NOT NULL,
// NESTING_EVENT_ID BIGINT(20) UNSIGNED,
// NESTING_EVENT_TYPE ENUM('TRANSACTION','STATEMENT','STAGE'),
// NESTING_EVENT_LEVEL INT(11));
var ColumnStmtsHistory = []string{
"THREAD_ID",
"EVENT_ID",
Expand Down Expand Up @@ -163,6 +276,49 @@ var ColumnStmtsHistory = []string{
}

// ColumnStmtsHistoryLong contains the column name definitions for table events_statements_history_long, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.events_statements_history_long (
// THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// END_EVENT_ID BIGINT(20) UNSIGNED,
// EVENT_NAME VARCHAR(128) NOT NULL,
// SOURCE VARCHAR(64),
// TIMER_START BIGINT(20) UNSIGNED,
// TIMER_END BIGINT(20) UNSIGNED,
// TIMER_WAIT BIGINT(20) UNSIGNED,
// LOCK_TIME BIGINT(20) UNSIGNED NOT NULL,
// SQL_TEXT LONGTEXT,
// DIGEST VARCHAR(32),
// DIGEST_TEXT LONGTEXT,
// CURRENT_SCHEMA VARCHAR(64),
// OBJECT_TYPE VARCHAR(64),
// OBJECT_SCHEMA VARCHAR(64),
// OBJECT_NAME VARCHAR(64),
// OBJECT_INSTANCE_BEGIN BIGINT(20) UNSIGNED,
// MYSQL_ERRNO INT(11),
// RETURNED_SQLSTATE VARCHAR(5),
// MESSAGE_TEXT VARCHAR(128),
// ERRORS BIGINT(20) UNSIGNED NOT NULL,
// WARNINGS BIGINT(20) UNSIGNED NOT NULL,
// ROWS_AFFECTED BIGINT(20) UNSIGNED NOT NULL,
// ROWS_SENT BIGINT(20) UNSIGNED NOT NULL,
// ROWS_EXAMINED BIGINT(20) UNSIGNED NOT NULL,
// CREATED_TMP_DISK_TABLES BIGINT(20) UNSIGNED NOT NULL,
// CREATED_TMP_TABLES BIGINT(20) UNSIGNED NOT NULL,
// SELECT_FULL_JOIN BIGINT(20) UNSIGNED NOT NULL,
// SELECT_FULL_RANGE_JOIN BIGINT(20) UNSIGNED NOT NULL,
// SELECT_RANGE BIGINT(20) UNSIGNED NOT NULL,
// SELECT_RANGE_CHECK BIGINT(20) UNSIGNED NOT NULL,
// SELECT_SCAN BIGINT(20) UNSIGNED NOT NULL,
// SORT_MERGE_PASSES BIGINT(20) UNSIGNED NOT NULL,
// SORT_RANGE BIGINT(20) UNSIGNED NOT NULL,
// SORT_ROWS BIGINT(20) UNSIGNED NOT NULL,
// SORT_SCAN BIGINT(20) UNSIGNED NOT NULL,
// NO_INDEX_USED BIGINT(20) UNSIGNED NOT NULL,
// NO_GOOD_INDEX_USED BIGINT(20) UNSIGNED NOT NULL,
// NESTING_EVENT_ID BIGINT(20) UNSIGNED,
// NESTING_EVENT_TYPE ENUM('TRANSACTION','STATEMENT','STAGE'),
// NESTING_EVENT_LEVEL INT(11));
var ColumnStmtsHistoryLong = []string{
"THREAD_ID",
"EVENT_ID",
Expand Down Expand Up @@ -208,6 +364,43 @@ var ColumnStmtsHistoryLong = []string{
}

// ColumnPreparedStmtsInstances contains the column name definitions for table prepared_statements_instances, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.prepared_statements_instances (
// OBJECT_INSTANCE_BEGIN BIGINT(20) UNSIGNED NOT NULL,
// STATEMENT_ID BIGINT(20) UNSIGNED NOT NULL,
// STATEMENT_NAME VARCHAR(64),
// SQL_TEXT LONGTEXT NOT NULL,
// OWNER_THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// OWNER_EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// OWNER_OBJECT_TYPE ENUM('EVENT','FUNCTION','TABLE'),
// OWNER_OBJECT_SCHEMA VARCHAR(64),
// OWNER_OBJECT_NAME VARCHAR(64),
// TIMER_PREPARE BIGINT(20) UNSIGNED NOT NULL,
// COUNT_REPREPARE BIGINT(20) UNSIGNED NOT NULL,
// COUNT_EXECUTE BIGINT(20) UNSIGNED NOT NULL,
// SUM_TIMER_EXECUTE BIGINT(20) UNSIGNED NOT NULL,
// MIN_TIMER_EXECUTE BIGINT(20) UNSIGNED NOT NULL,
// AVG_TIMER_EXECUTE BIGINT(20) UNSIGNED NOT NULL,
// MAX_TIMER_EXECUTE BIGINT(20) UNSIGNED NOT NULL,
// SUM_LOCK_TIME BIGINT(20) UNSIGNED NOT NULL,
// SUM_ERRORS BIGINT(20) UNSIGNED NOT NULL,
// SUM_WARNINGS BIGINT(20) UNSIGNED NOT NULL,
// SUM_ROWS_AFFECTED BIGINT(20) UNSIGNED NOT NULL,
// SUM_ROWS_SENT BIGINT(20) UNSIGNED NOT NULL,
// SUM_ROWS_EXAMINED BIGINT(20) UNSIGNED NOT NULL,
// SUM_CREATED_TMP_DISK_TABLES BIGINT(20) UNSIGNED NOT NULL,
// SUM_CREATED_TMP_TABLES BIGINT(20) UNSIGNED NOT NULL,
// SUM_SELECT_FULL_JOIN BIGINT(20) UNSIGNED NOT NULL,
// SUM_SELECT_FULL_RANGE_JOIN BIGINT(20) UNSIGNED NOT NULL,
// SUM_SELECT_RANGE BIGINT(20) UNSIGNED NOT NULL,
// SUM_SELECT_RANGE_CHECK BIGINT(20) UNSIGNED NOT NULL,
// SUM_SELECT_SCAN BIGINT(20) UNSIGNED NOT NULL,
// SUM_SORT_MERGE_PASSES BIGINT(20) UNSIGNED NOT NULL,
// SUM_SORT_RANGE BIGINT(20) UNSIGNED NOT NULL,
// SUM_SORT_ROWS BIGINT(20) UNSIGNED NOT NULL,
// SUM_SORT_SCAN BIGINT(20) UNSIGNED NOT NULL,
// SUM_NO_INDEX_USED BIGINT(20) UNSIGNED NOT NULL,
// SUM_NO_GOOD_INDEX_USED BIGINT(20) UNSIGNED NOT NULL);
var ColumnPreparedStmtsInstances = []string{
"OBJECT_INSTANCE_BEGIN",
"STATEMENT_ID",
Expand Down Expand Up @@ -247,6 +440,32 @@ var ColumnPreparedStmtsInstances = []string{
}

// ColumnTransCurrent contains the column name definitions for table events_transactions_current, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.events_transactions_current (
// THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// END_EVENT_ID BIGINT(20) UNSIGNED,
// EVENT_NAME VARCHAR(128) NOT NULL,
// STATE ENUM('ACTIVE','COMMITTED',"ROLLED BACK"),
// TRX_ID BIGINT(20) UNSIGNED,
// GTID VARCHAR(64),
// XID_FORMAT_ID INT(11),
// XID_GTRID VARCHAR(130),
// XID_BQUAL VARCHAR(130),
// XA_STATE VARCHAR(64),
// SOURCE VARCHAR(64),
// TIMER_START BIGINT(20) UNSIGNED,
// TIMER_END BIGINT(20) UNSIGNED,
// TIMER_WAIT BIGINT(20) UNSIGNED,
// ACCESS_MODE ENUM('READ ONLY','READ WRITE'),
// ISOLATION_LEVEL VARCHAR(64),
// AUTOCOMMIT ENUM('YES','NO') NOT NULL,
// NUMBER_OF_SAVEPOINTS BIGINT(20) UNSIGNED,
// NUMBER_OF_ROLLBACK_TO_SAVEPOINT BIGINT(20) UNSIGNED,
// NUMBER_OF_RELEASE_SAVEPOINT BIGINT(20) UNSIGNED,
// OBJECT_INSTANCE_BEGIN BIGINT(20) UNSIGNED,
// NESTING_EVENT_ID BIGINT(20) UNSIGNED,
// NESTING_EVENT_TYPE ENUM('TRANSACTION','STATEMENT','STAGE'));
var ColumnTransCurrent = []string{
"THREAD_ID",
"EVENT_ID",
Expand Down Expand Up @@ -275,6 +494,32 @@ var ColumnTransCurrent = []string{
}

// ColumnTransHistory contains the column name definitions for table events_transactions_history, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.events_transactions_history (
// THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// END_EVENT_ID BIGINT(20) UNSIGNED,
// EVENT_NAME VARCHAR(128) NOT NULL,
// STATE ENUM('ACTIVE','COMMITTED',"ROLLED BACK"),
// TRX_ID BIGINT(20) UNSIGNED,
// GTID VARCHAR(64),
// XID_FORMAT_ID INT(11),
// XID_GTRID VARCHAR(130),
// XID_BQUAL VARCHAR(130),
// XA_STATE VARCHAR(64),
// SOURCE VARCHAR(64),
// TIMER_START BIGINT(20) UNSIGNED,
// TIMER_END BIGINT(20) UNSIGNED,
// TIMER_WAIT BIGINT(20) UNSIGNED,
// ACCESS_MODE ENUM('READ ONLY','READ WRITE'),
// ISOLATION_LEVEL VARCHAR(64),
// AUTOCOMMIT ENUM('YES','NO') NOT NULL,
// NUMBER_OF_SAVEPOINTS BIGINT(20) UNSIGNED,
// NUMBER_OF_ROLLBACK_TO_SAVEPOINT BIGINT(20) UNSIGNED,
// NUMBER_OF_RELEASE_SAVEPOINT BIGINT(20) UNSIGNED,
// OBJECT_INSTANCE_BEGIN BIGINT(20) UNSIGNED,
// NESTING_EVENT_ID BIGINT(20) UNSIGNED,
// NESTING_EVENT_TYPE ENUM('TRANSACTION','STATEMENT','STAGE'));
var ColumnTransHistory = []string{
"THREAD_ID",
"EVENT_ID",
Expand Down Expand Up @@ -303,6 +548,32 @@ var ColumnTransHistory = []string{
}

// ColumnTransHistoryLong contains the column name definitions for table events_transactions_history_long, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.events_transactions_history_long (
// THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// END_EVENT_ID BIGINT(20) UNSIGNED,
// EVENT_NAME VARCHAR(128) NOT NULL,
// STATE ENUM('ACTIVE','COMMITTED',"ROLLED BACK"),
// TRX_ID BIGINT(20) UNSIGNED,
// GTID VARCHAR(64),
// XID_FORMAT_ID INT(11),
// XID_GTRID VARCHAR(130),
// XID_BQUAL VARCHAR(130),
// XA_STATE VARCHAR(64),
// SOURCE VARCHAR(64),
// TIMER_START BIGINT(20) UNSIGNED,
// TIMER_END BIGINT(20) UNSIGNED,
// TIMER_WAIT BIGINT(20) UNSIGNED,
// ACCESS_MODE ENUM('READ ONLY','READ WRITE'),
// ISOLATION_LEVEL VARCHAR(64),
// AUTOCOMMIT ENUM('YES','NO') NOT NULL,
// NUMBER_OF_SAVEPOINTS BIGINT(20) UNSIGNED,
// NUMBER_OF_ROLLBACK_TO_SAVEPOINT BIGINT(20) UNSIGNED,
// NUMBER_OF_RELEASE_SAVEPOINT BIGINT(20) UNSIGNED,
// OBJECT_INSTANCE_BEGIN BIGINT(20) UNSIGNED,
// NESTING_EVENT_ID BIGINT(20) UNSIGNED,
// NESTING_EVENT_TYPE ENUM('TRANSACTION','STATEMENT','STAGE'));
var ColumnTransHistoryLong = []string{
"THREAD_ID",
"EVENT_ID",
Expand Down Expand Up @@ -331,6 +602,20 @@ var ColumnTransHistoryLong = []string{
}

// ColumnStagesCurrent contains the column name definitions for table events_stages_current, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.events_stages_current (
// THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// END_EVENT_ID BIGINT(20) UNSIGNED,
// EVENT_NAME VARCHAR(128) NOT NULL,
// SOURCE VARCHAR(64),
// TIMER_START BIGINT(20) UNSIGNED,
// TIMER_END BIGINT(20) UNSIGNED,
// TIMER_WAIT BIGINT(20) UNSIGNED,
// WORK_COMPLETED BIGINT(20) UNSIGNED,
// WORK_ESTIMATED BIGINT(20) UNSIGNED,
// NESTING_EVENT_ID BIGINT(20) UNSIGNED,
// NESTING_EVENT_TYPE ENUM('TRANSACTION','STATEMENT','STAGE'));
var ColumnStagesCurrent = []string{
"THREAD_ID",
"EVENT_ID",
Expand All @@ -347,6 +632,20 @@ var ColumnStagesCurrent = []string{
}

// ColumnStagesHistory contains the column name definitions for table events_stages_history, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.events_stages_history (
// THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// END_EVENT_ID BIGINT(20) UNSIGNED,
// EVENT_NAME VARCHAR(128) NOT NULL,
// SOURCE VARCHAR(64),
// TIMER_START BIGINT(20) UNSIGNED,
// TIMER_END BIGINT(20) UNSIGNED,
// TIMER_WAIT BIGINT(20) UNSIGNED,
// WORK_COMPLETED BIGINT(20) UNSIGNED,
// WORK_ESTIMATED BIGINT(20) UNSIGNED,
// NESTING_EVENT_ID BIGINT(20) UNSIGNED,
// NESTING_EVENT_TYPE ENUM('TRANSACTION','STATEMENT','STAGE'));
var ColumnStagesHistory = []string{
"THREAD_ID",
"EVENT_ID",
Expand All @@ -363,6 +662,20 @@ var ColumnStagesHistory = []string{
}

// ColumnStagesHistoryLong contains the column name definitions for table events_stages_history_long, same as MySQL.
//
// CREATE TABLE if not exists performance_schema.events_stages_history_long (
// THREAD_ID BIGINT(20) UNSIGNED NOT NULL,
// EVENT_ID BIGINT(20) UNSIGNED NOT NULL,
// END_EVENT_ID BIGINT(20) UNSIGNED,
// EVENT_NAME VARCHAR(128) NOT NULL,
// SOURCE VARCHAR(64),
// TIMER_START BIGINT(20) UNSIGNED,
// TIMER_END BIGINT(20) UNSIGNED,
// TIMER_WAIT BIGINT(20) UNSIGNED,
// WORK_COMPLETED BIGINT(20) UNSIGNED,
// WORK_ESTIMATED BIGINT(20) UNSIGNED,
// NESTING_EVENT_ID BIGINT(20) UNSIGNED,
// NESTING_EVENT_TYPE ENUM('TRANSACTION','STATEMENT','STAGE'));
var ColumnStagesHistoryLong = []string{
"THREAD_ID",
"EVENT_ID",
Expand Down
Loading

0 comments on commit bdc432c

Please sign in to comment.