mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
(Part#2) MDEV-13049 Querying INFORMATION_SCHEMA becomes slow in MariaDB 10.1
This is a 10.3 specific part of MDEV-13049. It disables automatic sorting for "SELECT .. FROM INFORMATION_SCHEMA.{SCHEMATA|TABLES}" and adjusts the affected tests accordingly.
This commit is contained in:
@ -286,9 +286,11 @@ CREATE VIEW db_datadict.v2 AS
|
||||
SELECT TABLE_SCHEMA,TABLE_NAME,TABLE_TYPE
|
||||
FROM information_schema.tables WHERE table_schema = 'db_datadict';
|
||||
SELECT TABLE_SCHEMA,TABLE_NAME,TABLE_TYPE
|
||||
FROM db_datadict.v2;
|
||||
FROM db_datadict.v2
|
||||
ORDER BY TABLE_NAME;
|
||||
SELECT TABLE_SCHEMA,TABLE_NAME,TABLE_TYPE
|
||||
FROM information_schema.tables WHERE table_schema = 'db_datadict';
|
||||
FROM information_schema.tables WHERE table_schema = 'db_datadict'
|
||||
ORDER BY TABLE_NAME;
|
||||
GRANT SELECT ON db_datadict.v2 to testuser2@localhost;
|
||||
#
|
||||
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
|
||||
|
@ -78,7 +78,8 @@ eval SHOW COLUMNS FROM information_schema.$is_table;
|
||||
|
||||
# Show that TABLE_CATALOG is always NULL.
|
||||
SELECT table_catalog, table_schema, table_name, index_schema, index_name
|
||||
FROM information_schema.statistics WHERE table_catalog IS NOT NULL;
|
||||
FROM information_schema.statistics WHERE table_catalog IS NOT NULL
|
||||
ORDER BY table_schema, table_name, index_schema, index_name;
|
||||
|
||||
|
||||
--echo ####################################################################################
|
||||
|
@ -68,8 +68,8 @@ eval SHOW COLUMNS FROM information_schema.$is_table;
|
||||
SELECT constraint_catalog, constraint_schema, constraint_name,
|
||||
table_schema, table_name
|
||||
FROM information_schema.table_constraints
|
||||
WHERE constraint_catalog IS NOT NULL;
|
||||
|
||||
WHERE constraint_catalog IS NOT NULL
|
||||
ORDER BY constraint_schema, table_name, constraint_name;
|
||||
|
||||
--echo #########################################################################################
|
||||
--echo # Testcase 3.2.7.2 + 3.2.7.3: INFORMATION_SCHEMA.TABLE_CONSTRAINTS accessible information
|
||||
|
Reference in New Issue
Block a user