mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
54999b2863
Merged the majority of the PFS test cases. There are still 19 failing test cases that need more attention.
37 lines
1.3 KiB
Text
37 lines
1.3 KiB
Text
# ----------------------------------------------------
|
|
# 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 Enabled |
|
|
# events_statement_current Disabled |
|
|
# global_implementation Disabled ? |
|
|
# thread_implementation Disabled ? |
|
|
# -----------------------------------------
|
|
|
|
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
|