????
Current Path : C:/opt/mariadb/data/mysql/ |
Current File : C:/opt/mariadb/data/mysql/proc.MAD |
�m�<{ � �6C� ���������� ���l `� �� �� K @ � fƚ�fƚ� � � � sysps_trace_statement_digestps_trace_statement_digestutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhost IN in_digest VARCHAR(32), IN in_runtime INT, IN in_interval DECIMAL(2,2), IN in_start_fresh BOOLEAN, IN in_auto_enable BOOLEAN � fƚ�fƚ� 6 � � sysextract_table_from_file_nameextract_table_from_file_nameutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhostpath VARCHAR(512) varchar(64) CHARSET utf8mb3 COLLATE utf8mb3_general_ciBEGIN RETURN LEFT(SUBSTRING_INDEX(REPLACE(SUBSTRING_INDEX(REPLACE(path, '\\', '/'), '/', -1), '@0024', '$'), '.', 1), 64); END Description Takes a raw file path, and extracts the table name from it. Useful for when interacting with Performance Schema data concerning IO statistics, for example. Parameters path (VARCHAR(512)): The full file path to a data file to extract the table name from. Returns VARCHAR(64) Example mysql> SELECT sys.extract_table_from_file_name('/var/lib/mysql/employees/employee.ibd'); +---------------------------------------------------------------------------+ | sys.extract_table_from_file_name('/var/lib/mysql/employees/employee.ibd') | +---------------------------------------------------------------------------+ | employee | +---------------------------------------------------------------------------+ 1 row in set (0.02 sec) BEGIN RETURN LEFT(SUBSTRING_INDEX(REPLACE(SUBSTRING_INDEX(REPLACE(path, '\', '/'), '/', -1), '@0024', '$'), '.', 1), 64); END � fƚ�fƚ� / � sysformat_bytesformat_bytesutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhostbytes TEXT text CHARSET utf8mb3 COLLATE utf8mb3_general_ciBEGIN IF bytes IS NULL THEN RETURN NULL; ELSEIF bytes >= 1125899906842624 THEN RETURN CONCAT(ROUND(bytes / 1125899906842624, 2), ' PiB'); ELSEIF bytes >= 1099511627776 THEN RETURN CONCAT(ROUND(bytes / 1099511627776, 2), ' TiB'); ELSEIF bytes >= 1073741824 THEN RETURN CONCAT(ROUND(bytes / 1073741824, 2), ' GiB'); ELSEIF bytes >= 1048576 THEN RETURN CONCAT(ROUND(bytes / 1048576, 2), ' MiB'); ELSEIF bytes >= 1024 THEN RETURN CONCAT(ROUND(bytes / 1024, 2), ' KiB'); ELSE RETURN CONCAT(ROUND(bytes, 0), ' bytes'); END IF; END Description Takes a raw bytes value, and converts it to a human readable format. Parameters bytes (TEXT): A raw bytes value. Returns TEXT Example mysql> SELECT sys.format_bytes(2348723492723746) AS size; +----------+ | size | +----------+ | 2.09 PiB | +----------+ 1 row in set (0.00 sec) mysql> SELECT sys.format_bytes(2348723492723) AS size; +----------+ | size | +----------+ | 2.14 TiB | +----------+ 1 row in set (0.00 sec) mysql> SELECT sys.format_bytes(23487234) AS size; +-----------+ | size | +-----------+ | 22.40 MiB | +-----------+ 1 row in set (0.00 sec) BEGIN IF bytes IS NULL THEN RETURN NULL; ELSEIF bytes >= 1125899906842624 THEN RETURN CONCAT(ROUND(bytes / 1125899906842624, 2), ' PiB'); ELSEIF bytes >= 1099511627776 THEN RETURN CONCAT(ROUND(bytes / 1099511627776, 2), ' TiB'); ELSEIF bytes >= 1073741824 THEN RETURN CONCAT(ROUND(bytes / 1073741824, 2), ' GiB'); ELSEIF bytes >= 1048576 THEN RETURN CONCAT(ROUND(bytes / 1048576, 2), ' MiB'); ELSEIF bytes >= 1024 THEN RETURN CONCAT(ROUND(bytes / 1024, 2), ' KiB'); ELSE RETURN CONCAT(ROUND(bytes, 0), ' bytes'); END IF; END� �� �; � fƚ�fƚ� 2 1 { Z^ sysps_thread_stackps_thread_stackutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhostthd_id BIGINT UNSIGNED, debug BOOLEAN longtext CHARSET latin1 COLLATE latin1_swedish_ci� �� �<