summaryrefslogtreecommitdiff
path: root/scripts/sys_schema/views/p_s/user_summary_by_file_io.sql
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2023-03-27 18:50:49 +0200
committerSergei Golubchik <serg@mariadb.org>2023-03-27 21:27:27 +0200
commitc2b69163934016afa4bb3b274cddaacec92fcb61 (patch)
treee626bb791fdfb7438e1bdd340da47970926c95b9 /scripts/sys_schema/views/p_s/user_summary_by_file_io.sql
parentd9808f79de992964ed802d27984c9031d72e7b9a (diff)
downloadmariadb-git-c2b69163934016afa4bb3b274cddaacec92fcb61.tar.gz
MDEV-19629 post-merge fixesbb-11.0-serg
* it isn't "pfs" function, don't call it Item_func_pfs, don't use item_pfsfunc.* * tests don't depend on performance schema, put in the main suite * inherit from Item_str_ascii_func * use connection collation, not utf8mb3_general_ci * set result length in fix_length_and_dec * do not set maybe_null * use my_snprintf() where possible * don't set m_value.ptr on every invocation * update sys schema to use the format_pico_time() * len must be size_t (compilation error on Windows) * the correct function name for double->double is fabs() * drop volatile hack
Diffstat (limited to 'scripts/sys_schema/views/p_s/user_summary_by_file_io.sql')
-rw-r--r--scripts/sys_schema/views/p_s/user_summary_by_file_io.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sys_schema/views/p_s/user_summary_by_file_io.sql b/scripts/sys_schema/views/p_s/user_summary_by_file_io.sql
index 85862d50ecd..9afc2028c27 100644
--- a/scripts/sys_schema/views/p_s/user_summary_by_file_io.sql
+++ b/scripts/sys_schema/views/p_s/user_summary_by_file_io.sql
@@ -40,7 +40,7 @@ VIEW user_summary_by_file_io (
) AS
SELECT IF(user IS NULL, 'background', user) AS user,
SUM(count_star) AS ios,
- sys.format_time(SUM(sum_timer_wait)) AS io_latency
+ format_pico_time(SUM(sum_timer_wait)) AS io_latency
FROM performance_schema.events_waits_summary_by_user_by_event_name
WHERE event_name LIKE 'wait/io/file/%'
GROUP BY IF(user IS NULL, 'background', user)