summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/perfschema/r/dml_setup_consumers.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/perfschema/r/dml_setup_consumers.result')
-rw-r--r--mysql-test/suite/perfschema/r/dml_setup_consumers.result68
1 files changed, 68 insertions, 0 deletions
diff --git a/mysql-test/suite/perfschema/r/dml_setup_consumers.result b/mysql-test/suite/perfschema/r/dml_setup_consumers.result
new file mode 100644
index 00000000..a72b238f
--- /dev/null
+++ b/mysql-test/suite/perfschema/r/dml_setup_consumers.result
@@ -0,0 +1,68 @@
+select * from performance_schema.setup_consumers;
+NAME ENABLED
+events_stages_current YES
+events_stages_history YES
+events_stages_history_long YES
+events_statements_current YES
+events_statements_history YES
+events_statements_history_long YES
+events_transactions_current YES
+events_transactions_history YES
+events_transactions_history_long YES
+events_waits_current YES
+events_waits_history YES
+events_waits_history_long YES
+global_instrumentation YES
+thread_instrumentation YES
+statements_digest YES
+select * from performance_schema.setup_consumers
+where name='events_waits_current';
+NAME ENABLED
+events_waits_current YES
+select * from performance_schema.setup_consumers
+where enabled='YES';
+NAME ENABLED
+events_stages_current YES
+events_stages_history YES
+events_stages_history_long YES
+events_statements_current YES
+events_statements_history YES
+events_statements_history_long YES
+events_transactions_current YES
+events_transactions_history YES
+events_transactions_history_long YES
+events_waits_current YES
+events_waits_history YES
+events_waits_history_long YES
+global_instrumentation YES
+thread_instrumentation YES
+statements_digest YES
+select * from performance_schema.setup_consumers
+where enabled='NO';
+NAME ENABLED
+insert into performance_schema.setup_consumers
+set name='FOO', enabled='YES';
+ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_consumers`
+update performance_schema.setup_consumers
+set name='FOO';
+ERROR HY000: Invalid performance_schema usage
+update performance_schema.setup_consumers
+set enabled='YES';
+delete from performance_schema.setup_consumers;
+ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_consumers`
+delete from performance_schema.setup_consumers
+where name='events_waits_current';
+ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_consumers`
+LOCK TABLES performance_schema.setup_consumers READ;
+UNLOCK TABLES;
+LOCK TABLES performance_schema.setup_consumers WRITE;
+UNLOCK TABLES;
+#
+# MDEV-25325 column_comment for performance_schema tables
+#
+select column_name, column_comment
+from information_schema.columns
+where table_schema='performance_schema' and table_name='setup_consumers';
+column_name column_comment
+NAME Consumer name
+ENABLED YES or NO for whether or not the consumer is enabled. You can modify this column to ensure that event information is added, or is not added.