Server IP : 104.21.38.3 / Your IP : 172.71.82.108 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/sysschema/t/ |
Upload File : |
-- source include/not_embedded.inc # Tests for sys schema # Verify the sys.ps_is_consumer_enabled() function perfoms as expected # Should be disabled by default UPDATE performance_schema.setup_consumers SET enabled = 'NO' WHERE name = 'events_stages_history'; SELECT sys.ps_is_consumer_enabled('events_stages_history'); # Should be enabled by default SELECT sys.ps_is_consumer_enabled('global_instrumentation'); # # Check that hierarchy is properly reflected # UPDATE performance_schema.setup_consumers SET enabled = 'NO' WHERE name = 'events_stages_current'; UPDATE performance_schema.setup_consumers SET enabled = 'YES' WHERE name = 'events_stages_history'; # Should still be disabled, as events_stages_current not enabled SELECT sys.ps_is_consumer_enabled('events_stages_history'); UPDATE performance_schema.setup_consumers SET enabled = 'YES' WHERE name = 'events_stages_current'; # Now it should be enabled SELECT sys.ps_is_consumer_enabled('events_stages_history'); # Toggling global_instrumentation should disable all other consumers UPDATE performance_schema.setup_consumers SET enabled = 'NO' WHERE name = 'global_instrumentation'; SELECT sys.ps_is_consumer_enabled('thread_instrumentation'); SELECT sys.ps_is_consumer_enabled('statements_digest'); SELECT sys.ps_is_consumer_enabled('events_stages_current'); SELECT sys.ps_is_consumer_enabled('events_stages_history'); SELECT sys.ps_is_consumer_enabled('events_stages_history_long'); SELECT sys.ps_is_consumer_enabled('events_statements_current'); SELECT sys.ps_is_consumer_enabled('events_statements_history'); SELECT sys.ps_is_consumer_enabled('events_statements_history_long'); --source ../include/ps_setup_consumers_cleanup.inc