Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
86beb087
Commit
86beb087
authored
Dec 11, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an unnecessary dependency on persistent statistics
parent
0af52734
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
126 deletions
+38
-126
mysql-test/suite/innodb/r/innodb_max_recordsize_32k.result
mysql-test/suite/innodb/r/innodb_max_recordsize_32k.result
+10
-28
mysql-test/suite/innodb/r/innodb_max_recordsize_64k.result
mysql-test/suite/innodb/r/innodb_max_recordsize_64k.result
+10
-28
mysql-test/suite/innodb/t/innodb_max_recordsize_32k.opt
mysql-test/suite/innodb/t/innodb_max_recordsize_32k.opt
+2
-1
mysql-test/suite/innodb/t/innodb_max_recordsize_32k.test
mysql-test/suite/innodb/t/innodb_max_recordsize_32k.test
+7
-34
mysql-test/suite/innodb/t/innodb_max_recordsize_64k.opt
mysql-test/suite/innodb/t/innodb_max_recordsize_64k.opt
+2
-1
mysql-test/suite/innodb/t/innodb_max_recordsize_64k.test
mysql-test/suite/innodb/t/innodb_max_recordsize_64k.test
+7
-34
No files found.
mysql-test/suite/innodb/r/innodb_max_recordsize_32k.result
View file @
86beb087
...
@@ -2,18 +2,7 @@ call mtr.add_suppression('InnoDB: Cannot add field.*because after adding it, the
...
@@ -2,18 +2,7 @@ call mtr.add_suppression('InnoDB: Cannot add field.*because after adding it, the
SELECT @@innodb_page_size;
SELECT @@innodb_page_size;
@@innodb_page_size
@@innodb_page_size
32768
32768
SET GLOBAL innodb_file_format='Barracuda';
SET innodb_strict_mode=ON;
SET GLOBAL innodb_file_per_table=ON;
SET @@innodb_strict_mode=ON;
SELECT @@innodb_file_format;
@@innodb_file_format
Barracuda
SELECT @@innodb_file_per_table;
@@innodb_file_per_table
1
SELECT @@innodb_strict_mode;
@@innodb_strict_mode
1
CREATE TABLE tab5(col1 CHAR (255), col2 CHAR (255), col3 CHAR(255),col4 CHAR(255), col5 CHAR(255),
CREATE TABLE tab5(col1 CHAR (255), col2 CHAR (255), col3 CHAR(255),col4 CHAR(255), col5 CHAR(255),
col6 CHAR(255), col7 CHAR(255), col8 CHAR(255), col9 CHAR(255),col10 CHAR(255), col11 CHAR(255),
col6 CHAR(255), col7 CHAR(255), col8 CHAR(255), col9 CHAR(255),col10 CHAR(255), col11 CHAR(255),
col12 CHAR(255), col13 CHAR(255),col14 CHAR(255),col15 CHAR(255),col16 CHAR(255), col17 CHAR(255),
col12 CHAR(255), col13 CHAR(255),col14 CHAR(255),col15 CHAR(255),col16 CHAR(255), col17 CHAR(255),
...
@@ -337,11 +326,9 @@ FLUSH TABLE t;
...
@@ -337,11 +326,9 @@ FLUSH TABLE t;
ANALYZE TABLE t;
ANALYZE TABLE t;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t analyze status OK
test.t analyze status OK
SELECT stat_value FROM mysql.innodb_index_stats where database_name = 'test' and table_name= 't' and stat_name='n_leaf_pages';
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
stat_value
WHERE name = 'test/t';
6
clust_index_size
SELECT clustered_index_size from mysql.innodb_table_stats where database_name = 'test' and table_name= 't';
clustered_index_size
7
7
DROP TABLE t;
DROP TABLE t;
CREATE TABLE t(col BLOB) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
CREATE TABLE t(col BLOB) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
...
@@ -359,11 +346,9 @@ FLUSH TABLE t;
...
@@ -359,11 +346,9 @@ FLUSH TABLE t;
ANALYZE TABLE t;
ANALYZE TABLE t;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t analyze status OK
test.t analyze status OK
SELECT stat_value FROM mysql.innodb_index_stats where database_name = 'test' and table_name= 't' and stat_name='n_leaf_pages';
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
stat_value
WHERE name = 'test/t';
4
clust_index_size
SELECT clustered_index_size from mysql.innodb_table_stats where database_name = 'test' and table_name= 't';
clustered_index_size
5
5
DROP TABLE t;
DROP TABLE t;
CREATE TABLE t(col BLOB) ENGINE=InnoDB ROW_FORMAT=COMPACT;
CREATE TABLE t(col BLOB) ENGINE=InnoDB ROW_FORMAT=COMPACT;
...
@@ -381,11 +366,8 @@ FLUSH TABLE t;
...
@@ -381,11 +366,8 @@ FLUSH TABLE t;
ANALYZE TABLE t;
ANALYZE TABLE t;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t analyze status OK
test.t analyze status OK
SELECT stat_value FROM mysql.innodb_index_stats where database_name = 'test' and table_name= 't' and stat_name='n_leaf_pages';
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
stat_value
WHERE name = 'test/t';
4
clust_index_size
SELECT clustered_index_size from mysql.innodb_table_stats where database_name = 'test' and table_name= 't';
clustered_index_size
5
5
DROP TABLE t;
DROP TABLE t;
# Success
mysql-test/suite/innodb/r/innodb_max_recordsize_64k.result
View file @
86beb087
...
@@ -2,18 +2,7 @@ call mtr.add_suppression('InnoDB: Cannot add field.*because after adding it, the
...
@@ -2,18 +2,7 @@ call mtr.add_suppression('InnoDB: Cannot add field.*because after adding it, the
SELECT @@innodb_page_size;
SELECT @@innodb_page_size;
@@innodb_page_size
@@innodb_page_size
65536
65536
SET GLOBAL innodb_file_format='Barracuda';
SET innodb_strict_mode=ON;
SET GLOBAL innodb_file_per_table=ON;
SET @@innodb_strict_mode=ON;
SELECT @@innodb_file_format;
@@innodb_file_format
Barracuda
SELECT @@innodb_file_per_table;
@@innodb_file_per_table
1
SELECT @@innodb_strict_mode;
@@innodb_strict_mode
1
CREATE TABLE tab5(col1 CHAR (255), col2 CHAR (255), col3 CHAR(255),col4 CHAR(255), col5 CHAR(255),
CREATE TABLE tab5(col1 CHAR (255), col2 CHAR (255), col3 CHAR(255),col4 CHAR(255), col5 CHAR(255),
col6 CHAR(255), col7 CHAR(255), col8 CHAR(255), col9 CHAR(255),col10 CHAR(255), col11 CHAR(255),
col6 CHAR(255), col7 CHAR(255), col8 CHAR(255), col9 CHAR(255),col10 CHAR(255), col11 CHAR(255),
col12 CHAR(255), col13 CHAR(255),col14 CHAR(255),col15 CHAR(255),col16 CHAR(255), col17 CHAR(255),
col12 CHAR(255), col13 CHAR(255),col14 CHAR(255),col15 CHAR(255),col16 CHAR(255), col17 CHAR(255),
...
@@ -540,11 +529,9 @@ FLUSH TABLE t;
...
@@ -540,11 +529,9 @@ FLUSH TABLE t;
ANALYZE TABLE t;
ANALYZE TABLE t;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t analyze status OK
test.t analyze status OK
SELECT stat_value FROM mysql.innodb_index_stats where database_name = 'test' and table_name= 't' and stat_name='n_leaf_pages';
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
stat_value
WHERE name = 'test/t';
4
clust_index_size
SELECT clustered_index_size from mysql.innodb_table_stats where database_name = 'test' and table_name= 't';
clustered_index_size
5
5
DROP TABLE t;
DROP TABLE t;
CREATE TABLE t(col BLOB) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
CREATE TABLE t(col BLOB) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
...
@@ -562,11 +549,9 @@ FLUSH TABLE t;
...
@@ -562,11 +549,9 @@ FLUSH TABLE t;
ANALYZE TABLE t;
ANALYZE TABLE t;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t analyze status OK
test.t analyze status OK
SELECT stat_value FROM mysql.innodb_index_stats where database_name = 'test' and table_name= 't' and stat_name='n_leaf_pages';
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
stat_value
WHERE name = 'test/t';
3
clust_index_size
SELECT clustered_index_size from mysql.innodb_table_stats where database_name = 'test' and table_name= 't';
clustered_index_size
4
4
DROP TABLE t;
DROP TABLE t;
CREATE TABLE t(col BLOB) ENGINE=InnoDB ROW_FORMAT=COMPACT;
CREATE TABLE t(col BLOB) ENGINE=InnoDB ROW_FORMAT=COMPACT;
...
@@ -584,11 +569,8 @@ FLUSH TABLE t;
...
@@ -584,11 +569,8 @@ FLUSH TABLE t;
ANALYZE TABLE t;
ANALYZE TABLE t;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t analyze status OK
test.t analyze status OK
SELECT stat_value FROM mysql.innodb_index_stats where database_name = 'test' and table_name= 't' and stat_name='n_leaf_pages';
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
stat_value
WHERE name = 'test/t';
3
clust_index_size
SELECT clustered_index_size from mysql.innodb_table_stats where database_name = 'test' and table_name= 't';
clustered_index_size
4
4
DROP TABLE t;
DROP TABLE t;
# Success
mysql-test/suite/innodb/t/innodb_max_recordsize_32k.opt
View file @
86beb087
--innodb-page-size=32K
--innodb-page-size=32K
--innodb_buffer_pool_size=32M
--innodb_buffer_pool_size=32M
--innodb-stats-persistent=ON
--skip-innodb-stats-persistent
--innodb-sys-tablestats
mysql-test/suite/innodb/t/innodb_max_recordsize_32k.test
View file @
86beb087
...
@@ -6,19 +6,7 @@ call mtr.add_suppression('InnoDB: Cannot add field.*because after adding it, the
...
@@ -6,19 +6,7 @@ call mtr.add_suppression('InnoDB: Cannot add field.*because after adding it, the
# Check page size 32k
# Check page size 32k
SELECT
@@
innodb_page_size
;
SELECT
@@
innodb_page_size
;
let
$innodb_file_per_table
=
`SELECT @@innodb_file_per_table`
;
SET
innodb_strict_mode
=
ON
;
let
$innodb_file_format
=
`SELECT @@innodb_file_format`
;
let
$innodb_strict_mode
=
`SELECT @@innodb_strict_mode`
;
--
disable_warnings
SET
GLOBAL
innodb_file_format
=
'Barracuda'
;
SET
GLOBAL
innodb_file_per_table
=
ON
;
SET
@@
innodb_strict_mode
=
ON
;
--
enable_warnings
SELECT
@@
innodb_file_format
;
SELECT
@@
innodb_file_per_table
;
SELECT
@@
innodb_strict_mode
;
# Check the error when the max record length > 16K for innodb_page_size=32k
# Check the error when the max record length > 16K for innodb_page_size=32k
--
error
ER_TOO_BIG_ROWSIZE
--
error
ER_TOO_BIG_ROWSIZE
...
@@ -359,9 +347,8 @@ INSERT INTO t VALUES (REPEAT('a',65535));
...
@@ -359,9 +347,8 @@ INSERT INTO t VALUES (REPEAT('a',65535));
SELECT
LENGTH
(
col
)
FROM
t
;
SELECT
LENGTH
(
col
)
FROM
t
;
FLUSH
TABLE
t
;
FLUSH
TABLE
t
;
ANALYZE
TABLE
t
;
ANALYZE
TABLE
t
;
# retrieve the number of leaf pages
SELECT
clust_index_size
FROM
INFORMATION_SCHEMA
.
INNODB_SYS_TABLESTATS
SELECT
stat_value
FROM
mysql
.
innodb_index_stats
where
database_name
=
'test'
and
table_name
=
't'
and
stat_name
=
'n_leaf_pages'
;
WHERE
name
=
'test/t'
;
SELECT
clustered_index_size
from
mysql
.
innodb_table_stats
where
database_name
=
'test'
and
table_name
=
't'
;
DROP
TABLE
t
;
DROP
TABLE
t
;
CREATE
TABLE
t
(
col
BLOB
)
ENGINE
=
InnoDB
ROW_FORMAT
=
REDUNDANT
;
CREATE
TABLE
t
(
col
BLOB
)
ENGINE
=
InnoDB
ROW_FORMAT
=
REDUNDANT
;
...
@@ -372,9 +359,8 @@ INSERT INTO t VALUES (REPEAT('a',65535));
...
@@ -372,9 +359,8 @@ INSERT INTO t VALUES (REPEAT('a',65535));
SELECT
LENGTH
(
col
)
FROM
t
;
SELECT
LENGTH
(
col
)
FROM
t
;
FLUSH
TABLE
t
;
FLUSH
TABLE
t
;
ANALYZE
TABLE
t
;
ANALYZE
TABLE
t
;
# retrieve the number of leaf pages
SELECT
clust_index_size
FROM
INFORMATION_SCHEMA
.
INNODB_SYS_TABLESTATS
SELECT
stat_value
FROM
mysql
.
innodb_index_stats
where
database_name
=
'test'
and
table_name
=
't'
and
stat_name
=
'n_leaf_pages'
;
WHERE
name
=
'test/t'
;
SELECT
clustered_index_size
from
mysql
.
innodb_table_stats
where
database_name
=
'test'
and
table_name
=
't'
;
DROP
TABLE
t
;
DROP
TABLE
t
;
CREATE
TABLE
t
(
col
BLOB
)
ENGINE
=
InnoDB
ROW_FORMAT
=
COMPACT
;
CREATE
TABLE
t
(
col
BLOB
)
ENGINE
=
InnoDB
ROW_FORMAT
=
COMPACT
;
...
@@ -385,19 +371,6 @@ INSERT INTO t VALUES (REPEAT('a',65535));
...
@@ -385,19 +371,6 @@ INSERT INTO t VALUES (REPEAT('a',65535));
SELECT
LENGTH
(
col
)
FROM
t
;
SELECT
LENGTH
(
col
)
FROM
t
;
FLUSH
TABLE
t
;
FLUSH
TABLE
t
;
ANALYZE
TABLE
t
;
ANALYZE
TABLE
t
;
# retrieve the number of leaf pages
SELECT
clust_index_size
FROM
INFORMATION_SCHEMA
.
INNODB_SYS_TABLESTATS
SELECT
stat_value
FROM
mysql
.
innodb_index_stats
where
database_name
=
'test'
and
table_name
=
't'
and
stat_name
=
'n_leaf_pages'
;
WHERE
name
=
'test/t'
;
SELECT
clustered_index_size
from
mysql
.
innodb_table_stats
where
database_name
=
'test'
and
table_name
=
't'
;
DROP
TABLE
t
;
DROP
TABLE
t
;
# cleanup
--
disable_query_log
--
disable_warnings
eval
SET
GLOBAL
INNODB_FILE_FORMAT
=
$innodb_file_format
;
eval
SET
GLOBAL
INNODB_FILE_PER_TABLE
=
$innodb_file_per_table
;
eval
SET
GLOBAL
INNODB_STRICT_MODE
=
$innodb_strict_mode
;
--
enable_warnings
--
enable_query_log
--
echo
# Success
mysql-test/suite/innodb/t/innodb_max_recordsize_64k.opt
View file @
86beb087
--innodb-page-size=64K
--innodb-page-size=64K
--innodb_buffer_pool_size=32M
--innodb_buffer_pool_size=32M
--innodb-stats-persistent=ON
--skip-innodb-stats-persistent
--innodb-sys-tablestats
mysql-test/suite/innodb/t/innodb_max_recordsize_64k.test
View file @
86beb087
...
@@ -6,19 +6,7 @@ call mtr.add_suppression('InnoDB: Cannot add field.*because after adding it, the
...
@@ -6,19 +6,7 @@ call mtr.add_suppression('InnoDB: Cannot add field.*because after adding it, the
# Check page size 64k
# Check page size 64k
SELECT
@@
innodb_page_size
;
SELECT
@@
innodb_page_size
;
let
$innodb_file_per_table
=
`SELECT @@innodb_file_per_table`
;
SET
innodb_strict_mode
=
ON
;
let
$innodb_file_format
=
`SELECT @@innodb_file_format`
;
let
$innodb_strict_mode
=
`SELECT @@innodb_strict_mode`
;
--
disable_warnings
SET
GLOBAL
innodb_file_format
=
'Barracuda'
;
SET
GLOBAL
innodb_file_per_table
=
ON
;
SET
@@
innodb_strict_mode
=
ON
;
--
enable_warnings
SELECT
@@
innodb_file_format
;
SELECT
@@
innodb_file_per_table
;
SELECT
@@
innodb_strict_mode
;
# Check the error when the max record length > 32K for innodb_page_size=64k
# Check the error when the max record length > 32K for innodb_page_size=64k
--
error
ER_TOO_BIG_ROWSIZE
--
error
ER_TOO_BIG_ROWSIZE
...
@@ -563,9 +551,8 @@ INSERT INTO t VALUES (REPEAT('a',65535));
...
@@ -563,9 +551,8 @@ INSERT INTO t VALUES (REPEAT('a',65535));
SELECT
LENGTH
(
col
)
FROM
t
;
SELECT
LENGTH
(
col
)
FROM
t
;
FLUSH
TABLE
t
;
FLUSH
TABLE
t
;
ANALYZE
TABLE
t
;
ANALYZE
TABLE
t
;
# retrieve the number of leaf pages
SELECT
clust_index_size
FROM
INFORMATION_SCHEMA
.
INNODB_SYS_TABLESTATS
SELECT
stat_value
FROM
mysql
.
innodb_index_stats
where
database_name
=
'test'
and
table_name
=
't'
and
stat_name
=
'n_leaf_pages'
;
WHERE
name
=
'test/t'
;
SELECT
clustered_index_size
from
mysql
.
innodb_table_stats
where
database_name
=
'test'
and
table_name
=
't'
;
DROP
TABLE
t
;
DROP
TABLE
t
;
CREATE
TABLE
t
(
col
BLOB
)
ENGINE
=
InnoDB
ROW_FORMAT
=
REDUNDANT
;
CREATE
TABLE
t
(
col
BLOB
)
ENGINE
=
InnoDB
ROW_FORMAT
=
REDUNDANT
;
...
@@ -576,9 +563,8 @@ INSERT INTO t VALUES (REPEAT('a',65535));
...
@@ -576,9 +563,8 @@ INSERT INTO t VALUES (REPEAT('a',65535));
SELECT
LENGTH
(
col
)
FROM
t
;
SELECT
LENGTH
(
col
)
FROM
t
;
FLUSH
TABLE
t
;
FLUSH
TABLE
t
;
ANALYZE
TABLE
t
;
ANALYZE
TABLE
t
;
# retrieve the number of leaf pages
SELECT
clust_index_size
FROM
INFORMATION_SCHEMA
.
INNODB_SYS_TABLESTATS
SELECT
stat_value
FROM
mysql
.
innodb_index_stats
where
database_name
=
'test'
and
table_name
=
't'
and
stat_name
=
'n_leaf_pages'
;
WHERE
name
=
'test/t'
;
SELECT
clustered_index_size
from
mysql
.
innodb_table_stats
where
database_name
=
'test'
and
table_name
=
't'
;
DROP
TABLE
t
;
DROP
TABLE
t
;
CREATE
TABLE
t
(
col
BLOB
)
ENGINE
=
InnoDB
ROW_FORMAT
=
COMPACT
;
CREATE
TABLE
t
(
col
BLOB
)
ENGINE
=
InnoDB
ROW_FORMAT
=
COMPACT
;
...
@@ -589,19 +575,6 @@ INSERT INTO t VALUES (REPEAT('a',65535));
...
@@ -589,19 +575,6 @@ INSERT INTO t VALUES (REPEAT('a',65535));
SELECT
LENGTH
(
col
)
FROM
t
;
SELECT
LENGTH
(
col
)
FROM
t
;
FLUSH
TABLE
t
;
FLUSH
TABLE
t
;
ANALYZE
TABLE
t
;
ANALYZE
TABLE
t
;
# retrieve the number of leaf pages
SELECT
clust_index_size
FROM
INFORMATION_SCHEMA
.
INNODB_SYS_TABLESTATS
SELECT
stat_value
FROM
mysql
.
innodb_index_stats
where
database_name
=
'test'
and
table_name
=
't'
and
stat_name
=
'n_leaf_pages'
;
WHERE
name
=
'test/t'
;
SELECT
clustered_index_size
from
mysql
.
innodb_table_stats
where
database_name
=
'test'
and
table_name
=
't'
;
DROP
TABLE
t
;
DROP
TABLE
t
;
# cleanup
--
disable_query_log
--
disable_warnings
eval
SET
GLOBAL
INNODB_FILE_FORMAT
=
$innodb_file_format
;
eval
SET
GLOBAL
INNODB_FILE_PER_TABLE
=
$innodb_file_per_table
;
eval
SET
GLOBAL
INNODB_STRICT_MODE
=
$innodb_strict_mode
;
--
enable_warnings
--
enable_query_log
--
echo
# Success
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment