Remove trailing spaces (#665)

* Remove trailing spaces

* PR-665 -  Remove trailing spaces

- Updated not stable test t/pt-online-schema-change/preserve_triggers.t
- Updated utilities in bin directory

* PR-665 -  Remove trailing spaces

- Fixed typos

* PR-665 -  Remove trailing spaces

- Fixed typos

---------

Co-authored-by: Sveta Smirnova <sveta.smirnova@percona.com>
This commit is contained in:
Viktor Szépe
2023-09-06 00:15:12 +02:00
committed by GitHub
parent 8bf97c9ca7
commit 2bd40d8c39
570 changed files with 5557 additions and 5557 deletions

View File

@@ -15,11 +15,11 @@
--
-- View: innodb_buffer_stats_by_schema
--
-- Summarizes the output of the INFORMATION_SCHEMA.INNODB_BUFFER_PAGE
--
-- Summarizes the output of the INFORMATION_SCHEMA.INNODB_BUFFER_PAGE
-- table, aggregating by schema
--
--
--
-- mysql> select * from innodb_buffer_stats_by_schema;
-- +--------------------------+------------+------------+-------+--------------+-----------+-------------+
-- | object_schema | allocated | data | pages | pages_hashed | pages_old | rows_cached |
@@ -33,7 +33,7 @@
CREATE OR REPLACE
ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost'
SQL SECURITY INVOKER
SQL SECURITY INVOKER
VIEW innodb_buffer_stats_by_schema (
object_schema,
allocated,
@@ -49,8 +49,8 @@ SELECT IF(LOCATE('.', ibp.table_name) = 0, 'InnoDB System', REPLACE(SUBSTRING_IN
COUNT(ibp.page_number) AS pages,
COUNT(IF(ibp.is_hashed = 'YES', 1, 0)) AS pages_hashed,
COUNT(IF(ibp.is_old = 'YES', 1, 0)) AS pages_old,
ROUND(SUM(ibp.number_records)/COUNT(DISTINCT ibp.index_name)) AS rows_cached
FROM information_schema.innodb_buffer_page ibp
ROUND(SUM(ibp.number_records)/COUNT(DISTINCT ibp.index_name)) AS rows_cached
FROM information_schema.innodb_buffer_page ibp
WHERE table_name IS NOT NULL
GROUP BY object_schema
ORDER BY SUM(IF(ibp.compressed_size = 0, 16384, compressed_size)) DESC;

View File

@@ -15,8 +15,8 @@
--
-- View: innodb_buffer_stats_by_table
--
-- Summarizes the output of the INFORMATION_SCHEMA.INNODB_BUFFER_PAGE
--
-- Summarizes the output of the INFORMATION_SCHEMA.INNODB_BUFFER_PAGE
-- table, aggregating by schema and table name
--
-- mysql> select * from innodb_buffer_stats_by_table;
@@ -37,7 +37,7 @@
CREATE OR REPLACE
ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost'
SQL SECURITY INVOKER
SQL SECURITY INVOKER
VIEW innodb_buffer_stats_by_table (
object_schema,
object_name,
@@ -55,8 +55,8 @@ SELECT IF(LOCATE('.', ibp.table_name) = 0, 'InnoDB System', REPLACE(SUBSTRING_IN
COUNT(ibp.page_number) AS pages,
COUNT(IF(ibp.is_hashed = 'YES', 1, 0)) AS pages_hashed,
COUNT(IF(ibp.is_old = 'YES', 1, 0)) AS pages_old,
ROUND(SUM(ibp.number_records)/COUNT(DISTINCT ibp.index_name)) AS rows_cached
FROM information_schema.innodb_buffer_page ibp
ROUND(SUM(ibp.number_records)/COUNT(DISTINCT ibp.index_name)) AS rows_cached
FROM information_schema.innodb_buffer_page ibp
WHERE table_name IS NOT NULL
GROUP BY object_schema, object_name
ORDER BY SUM(IF(ibp.compressed_size = 0, 16384, compressed_size)) DESC;

View File

@@ -55,7 +55,7 @@
CREATE OR REPLACE
ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost'
SQL SECURITY INVOKER
SQL SECURITY INVOKER
VIEW innodb_lock_waits (
wait_started,
wait_age,

View File

@@ -15,7 +15,7 @@
--
-- View: schema_object_overview
--
--
-- Shows an overview of the types of objects within each schema
--
-- Note: On instances with a large number of objects, this could take
@@ -40,14 +40,14 @@
CREATE OR REPLACE
ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost'
SQL SECURITY INVOKER
SQL SECURITY INVOKER
VIEW schema_object_overview (
db,
object_type,
count
) AS
SELECT ROUTINE_SCHEMA AS db, ROUTINE_TYPE AS object_type, COUNT(*) AS count FROM information_schema.routines GROUP BY ROUTINE_SCHEMA, ROUTINE_TYPE
UNION
UNION
SELECT TABLE_SCHEMA, TABLE_TYPE, COUNT(*) FROM information_schema.tables GROUP BY TABLE_SCHEMA, TABLE_TYPE
UNION
SELECT TABLE_SCHEMA, CONCAT('INDEX (', INDEX_TYPE, ')'), COUNT(*) FROM information_schema.statistics GROUP BY TABLE_SCHEMA, INDEX_TYPE

View File

@@ -16,7 +16,7 @@
-- subpart_exists: 0
-- sql_drop_index: ALTER TABLE `test`.`rkey` DROP INDEX `j`
-- 1 row in set (0.20 sec)
--
--
-- mysql> SHOW CREATE TABLE test.rkey\G
-- *************************** 1. row ***************************
-- Table: rkey
@@ -29,7 +29,7 @@
-- KEY `j_2` (`j`,`k`)
-- ) ENGINE=InnoDB DEFAULT CHARSET=latin1
-- 1 row in set (0.06 sec)
--
--
CREATE OR REPLACE
ALGORITHM = TEMPTABLE
@@ -67,24 +67,24 @@ VIEW schema_redundant_indexes (
WHERE
redundant_keys.index_name != dominant_keys.index_name
AND (
(
(
/* Identical columns */
(redundant_keys.index_columns = dominant_keys.index_columns)
AND (
(redundant_keys.non_unique > dominant_keys.non_unique)
OR (redundant_keys.non_unique = dominant_keys.non_unique
OR (redundant_keys.non_unique = dominant_keys.non_unique
AND IF(redundant_keys.index_name='PRIMARY', '', redundant_keys.index_name) > IF(dominant_keys.index_name='PRIMARY', '', dominant_keys.index_name)
)
)
)
OR
(
(
/* Non-unique prefix columns */
LOCATE(CONCAT(redundant_keys.index_columns, ','), dominant_keys.index_columns) = 1
AND redundant_keys.non_unique = 1
)
OR
(
(
/* Unique prefix columns */
LOCATE(CONCAT(dominant_keys.index_columns, ','), redundant_keys.index_columns) = 1
AND dominant_keys.non_unique = 0

View File

@@ -15,8 +15,8 @@
--
-- View: x$innodb_buffer_stats_by_schema
--
-- Summarizes the output of the INFORMATION_SCHEMA.INNODB_BUFFER_PAGE
--
-- Summarizes the output of the INFORMATION_SCHEMA.INNODB_BUFFER_PAGE
-- table, aggregating by schema
--
-- mysql> select * from x$innodb_buffer_stats_by_schema;
@@ -32,7 +32,7 @@
CREATE OR REPLACE
ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost'
SQL SECURITY INVOKER
SQL SECURITY INVOKER
VIEW x$innodb_buffer_stats_by_schema (
object_schema,
allocated,
@@ -48,8 +48,8 @@ SELECT IF(LOCATE('.', ibp.table_name) = 0, 'InnoDB System', REPLACE(SUBSTRING_IN
COUNT(ibp.page_number) AS pages,
COUNT(IF(ibp.is_hashed = 'YES', 1, 0)) AS pages_hashed,
COUNT(IF(ibp.is_old = 'YES', 1, 0)) AS pages_old,
ROUND(IFNULL(SUM(ibp.number_records)/NULLIF(COUNT(DISTINCT ibp.index_name), 0), 0)) AS rows_cached
FROM information_schema.innodb_buffer_page ibp
ROUND(IFNULL(SUM(ibp.number_records)/NULLIF(COUNT(DISTINCT ibp.index_name), 0), 0)) AS rows_cached
FROM information_schema.innodb_buffer_page ibp
WHERE table_name IS NOT NULL
GROUP BY object_schema
ORDER BY SUM(IF(ibp.compressed_size = 0, 16384, compressed_size)) DESC;

View File

@@ -15,8 +15,8 @@
--
-- View: x$innodb_buffer_stats_by_table
--
-- Summarizes the output of the INFORMATION_SCHEMA.INNODB_BUFFER_PAGE
--
-- Summarizes the output of the INFORMATION_SCHEMA.INNODB_BUFFER_PAGE
-- table, aggregating by schema and table name
--
-- mysql> select * from x$innodb_buffer_stats_by_table;
@@ -37,7 +37,7 @@
CREATE OR REPLACE
ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost'
SQL SECURITY INVOKER
SQL SECURITY INVOKER
VIEW x$innodb_buffer_stats_by_table (
object_schema,
object_name,
@@ -55,8 +55,8 @@ SELECT IF(LOCATE('.', ibp.table_name) = 0, 'InnoDB System', REPLACE(SUBSTRING_IN
COUNT(ibp.page_number) AS pages,
COUNT(IF(ibp.is_hashed = 'YES', 1, 0)) AS pages_hashed,
COUNT(IF(ibp.is_old = 'YES', 1, 0)) AS pages_old,
ROUND(IFNULL(SUM(ibp.number_records)/NULLIF(COUNT(DISTINCT ibp.index_name), 0), 0)) AS rows_cached
FROM information_schema.innodb_buffer_page ibp
ROUND(IFNULL(SUM(ibp.number_records)/NULLIF(COUNT(DISTINCT ibp.index_name), 0), 0)) AS rows_cached
FROM information_schema.innodb_buffer_page ibp
WHERE table_name IS NOT NULL
GROUP BY object_schema, object_name
ORDER BY SUM(IF(ibp.compressed_size = 0, 16384, compressed_size)) DESC;

View File

@@ -55,7 +55,7 @@
CREATE OR REPLACE
ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost'
SQL SECURITY INVOKER
SQL SECURITY INVOKER
VIEW x$innodb_lock_waits (
wait_started,
wait_age,