Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 7566054

Browse files
committed
Merge branch 'development' of https://github.com/MarkLeith/mysql-sys into development
2 parents aaa07ab + aebab1a commit 7566054

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

views/p_s/memory_by_host.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ SELECT IF(host IS NULL, 'background', host) AS host,
4949
sys.format_bytes(MAX(current_number_of_bytes_used)) AS current_max_alloc,
5050
sys.format_bytes(SUM(sum_number_of_bytes_alloc)) AS total_allocated
5151
FROM performance_schema.memory_summary_by_host_by_event_name
52-
GROUP BY host
52+
GROUP BY IF(host IS NULL, 'background', host)
5353
ORDER BY SUM(current_number_of_bytes_used) DESC;
5454

5555
/*
@@ -88,5 +88,5 @@ SELECT IF(host IS NULL, 'background', host) AS host,
8888
MAX(current_number_of_bytes_used) AS current_max_alloc,
8989
SUM(sum_number_of_bytes_alloc) AS total_allocated
9090
FROM performance_schema.memory_summary_by_host_by_event_name
91-
GROUP BY host
91+
GROUP BY IF(host IS NULL, 'background', host)
9292
ORDER BY SUM(current_number_of_bytes_used) DESC;

views/p_s/memory_by_user.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ SELECT IF(user IS NULL, 'background', user) AS user,
4949
sys.format_bytes(MAX(current_number_of_bytes_used)) AS current_max_alloc,
5050
sys.format_bytes(SUM(sum_number_of_bytes_alloc)) AS total_allocated
5151
FROM performance_schema.memory_summary_by_user_by_event_name
52-
GROUP BY user
52+
GROUP BY IF(user IS NULL, 'background', user)
5353
ORDER BY SUM(current_number_of_bytes_used) DESC;
5454

5555
/*
@@ -88,5 +88,5 @@ SELECT IF(user IS NULL, 'background', user) AS user,
8888
MAX(current_number_of_bytes_used) AS current_max_alloc,
8989
SUM(sum_number_of_bytes_alloc) AS total_allocated
9090
FROM performance_schema.memory_summary_by_user_by_event_name
91-
GROUP BY user
91+
GROUP BY IF(user IS NULL, 'background', user)
9292
ORDER BY SUM(current_number_of_bytes_used) DESC;

0 commit comments

Comments
 (0)