Commit e4835bf5 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-28304 innodb.instant_alter,8k.rdiff does not apply on FreeBSD

This is conceptually a backport of
commit 6f4740fd
(re-recording the .rdiff files).
parent 42908dc5
--- instant_alter.result @@ -5,7 +5,7 @@
+++ instant_alter,32k.result SET GLOBAL innodb_instant_alter_column_allowed = add_last;
@@ -2,7 +2,7 @@ call mtr.add_suppression("Cannot add field `.*` in table `test`.`.*` because after adding it, the row size is");
# MDEV-11369: Instant ADD COLUMN for InnoDB
#
CREATE TABLE t(a INT UNIQUE)ENGINE=InnoDB ROW_FORMAT=COMPACT; CREATE TABLE t(a INT UNIQUE)ENGINE=InnoDB ROW_FORMAT=COMPACT;
-ALTER TABLE t ADD e INT, ROW_FORMAT=COMPRESSED; -ALTER TABLE t ADD e INT, ROW_FORMAT=COMPRESSED;
+ALTER TABLE t ADD e INT, ROW_FORMAT=DYNAMIC; +ALTER TABLE t ADD e INT, ROW_FORMAT=DYNAMIC;
INSERT INTO t SET a=1; INSERT INTO t SET a=1;
SET @old_instant= SET @old_instant=
(SELECT variable_value FROM information_schema.global_status (SELECT variable_value FROM information_schema.global_status
@@ -33,17 +33,17 @@ @@ -36,17 +36,17 @@
`c` int(11) NOT NULL, `c` int(11) NOT NULL,
`d` int(11) NOT NULL, `d` int(11) NOT NULL,
UNIQUE KEY `a` (`a`) UNIQUE KEY `a` (`a`)
...@@ -30,7 +28,7 @@ ...@@ -30,7 +28,7 @@
DROP TABLE t; DROP TABLE t;
connect analyze, localhost, root; connect analyze, localhost, root;
connection default; connection default;
@@ -374,7 +374,7 @@ @@ -399,7 +399,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -39,7 +37,7 @@ ...@@ -39,7 +37,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -397,7 +397,7 @@ @@ -422,7 +422,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -48,7 +46,7 @@ ...@@ -48,7 +46,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -410,7 +410,7 @@ @@ -435,7 +435,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -56,8 +54,8 @@ ...@@ -56,8 +54,8 @@
+1 +1
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,big; DROP TABLE t1,t2,t3,t4,big;
@@ -734,7 +734,7 @@ @@ -883,7 +883,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -66,7 +64,7 @@ ...@@ -66,7 +64,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -757,7 +757,7 @@ @@ -906,7 +906,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -75,7 +73,7 @@ ...@@ -75,7 +73,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -770,7 +770,7 @@ @@ -919,7 +919,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -83,8 +81,8 @@ ...@@ -83,8 +81,8 @@
+1 +1
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,big; DROP TABLE t1,t2,t3,t4,big;
@@ -1094,7 +1094,7 @@ @@ -1367,7 +1367,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -93,7 +91,7 @@ ...@@ -93,7 +91,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -1117,7 +1117,7 @@ @@ -1390,7 +1390,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -102,7 +100,7 @@ ...@@ -102,7 +100,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -1130,7 +1130,7 @@ @@ -1403,7 +1403,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -110,4 +108,4 @@ ...@@ -110,4 +108,4 @@
+1 +1
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,big; DROP TABLE t1,t2,t3,t4,big;
--- instant_alter.result
+++ instant_alter,4k.result
@@ -243,7 +243,7 @@ @@ -243,7 +243,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
...@@ -36,7 +34,7 @@ ...@@ -36,7 +34,7 @@
connection default; connection default;
ALTER TABLE t2 DROP p; ALTER TABLE t2 DROP p;
affected rows: 0 affected rows: 0
@@ -322,8 +322,14 @@ @@ -326,8 +326,14 @@
affected rows: 0 affected rows: 0
info: Records: 0 Duplicates: 0 Warnings: 0 info: Records: 0 Duplicates: 0 Warnings: 0
ALTER TABLE t3 ADD COLUMN b BLOB NOT NULL; ALTER TABLE t3 ADD COLUMN b BLOB NOT NULL;
...@@ -52,7 +50,7 @@ ...@@ -52,7 +50,7 @@
INSERT INTO t3 SET id=4; INSERT INTO t3 SET id=4;
ERROR HY000: Field 'c2' doesn't have a default value ERROR HY000: Field 'c2' doesn't have a default value
INSERT INTO t3 SET id=4, c2=0, b=0xf09f98b1; INSERT INTO t3 SET id=4, c2=0, b=0xf09f98b1;
@@ -336,7 +342,9 @@ @@ -340,7 +346,9 @@
ALTER TABLE t3 CHANGE t phrase TEXT DEFAULT 0xc3a4c3a448, ALTER TABLE t3 CHANGE t phrase TEXT DEFAULT 0xc3a4c3a448,
CHANGE b b BLOB NOT NULL DEFAULT 'binary line of business'; CHANGE b b BLOB NOT NULL DEFAULT 'binary line of business';
affected rows: 4 affected rows: 4
...@@ -63,7 +61,7 @@ ...@@ -63,7 +61,7 @@
INSERT INTO t3 SET id=5, c2=9; INSERT INTO t3 SET id=5, c2=9;
Warnings: Warnings:
Note 1265 Data truncated for column 'c7' at row 1 Note 1265 Data truncated for column 'c7' at row 1
@@ -350,7 +358,9 @@ @@ -354,7 +362,9 @@
5 9 POLYGON((1 1,2 2,3 3,1 1)) 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 03:00:42 1970-01-01 ääH binary line of business 5 9 POLYGON((1 1,2 2,3 3,1 1)) 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 03:00:42 1970-01-01 ääH binary line of business
ALTER TABLE t3 DROP c3, DROP c7; ALTER TABLE t3 DROP c3, DROP c7;
affected rows: 0 affected rows: 0
...@@ -74,7 +72,7 @@ ...@@ -74,7 +72,7 @@
SELECT * FROM t3; SELECT * FROM t3;
id c2 c4 c5 c6 c8 phrase b id c2 c4 c5 c6 c8 phrase b
1 1 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 1970-01-01 The quick brown fox jumps over the lazy dog 1 1 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 1970-01-01 The quick brown fox jumps over the lazy dog
@@ -378,6 +388,8 @@ @@ -382,6 +392,8 @@
(id INT PRIMARY KEY, c1 VARCHAR(4000), c2 VARCHAR(4000), c3 VARCHAR(1000), (id INT PRIMARY KEY, c1 VARCHAR(4000), c2 VARCHAR(4000), c3 VARCHAR(1000),
p POINT NOT NULL DEFAULT ST_GeomFromText('POINT(0 0)'), SPATIAL INDEX(p)) p POINT NOT NULL DEFAULT ST_GeomFromText('POINT(0 0)'), SPATIAL INDEX(p))
ENGINE=InnoDB ROW_FORMAT=REDUNDANT; ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
...@@ -83,7 +81,7 @@ ...@@ -83,7 +81,7 @@
BEGIN; BEGIN;
INSERT INTO big INSERT INTO big
SET id=1, c1=REPEAT('a', 200), c2=REPEAT('b', 200), c3=REPEAT('c', 159); SET id=1, c1=REPEAT('a', 200), c2=REPEAT('b', 200), c3=REPEAT('c', 159);
@@ -395,13 +407,15 @@ @@ -399,13 +411,15 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -101,7 +99,7 @@ ...@@ -101,7 +99,7 @@
CHECKSUM TABLE big; CHECKSUM TABLE big;
Table Checksum Table Checksum
test.big 1705165209 test.big 1705165209
@@ -418,7 +432,7 @@ @@ -422,7 +436,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -110,7 +108,7 @@ ...@@ -110,7 +108,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -431,7 +445,7 @@ @@ -435,7 +449,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -119,7 +117,7 @@ ...@@ -119,7 +117,7 @@
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,t4,big; DROP TABLE t1,t2,t3,t4,big;
@@ -730,7 +744,7 @@ @@ -727,7 +741,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -128,7 +126,7 @@ ...@@ -128,7 +126,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -740,7 +754,7 @@ @@ -737,7 +751,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -137,7 +135,7 @@ ...@@ -137,7 +135,7 @@
connection default; connection default;
BEGIN; BEGIN;
UPDATE t2 SET d1 = repeat(id, 200); UPDATE t2 SET d1 = repeat(id, 200);
@@ -751,7 +765,7 @@ @@ -748,7 +762,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -146,7 +144,7 @@ ...@@ -146,7 +144,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -761,7 +775,7 @@ @@ -758,7 +772,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -155,7 +153,7 @@ ...@@ -155,7 +153,7 @@
connection default; connection default;
ALTER TABLE t2 DROP p; ALTER TABLE t2 DROP p;
affected rows: 0 affected rows: 0
@@ -810,7 +824,9 @@ @@ -811,7 +825,9 @@
info: Records: 0 Duplicates: 0 Warnings: 0 info: Records: 0 Duplicates: 0 Warnings: 0
ALTER TABLE t3 ADD COLUMN b BLOB NOT NULL; ALTER TABLE t3 ADD COLUMN b BLOB NOT NULL;
affected rows: 0 affected rows: 0
...@@ -166,7 +164,7 @@ ...@@ -166,7 +164,7 @@
INSERT INTO t3 SET id=4; INSERT INTO t3 SET id=4;
ERROR HY000: Field 'c2' doesn't have a default value ERROR HY000: Field 'c2' doesn't have a default value
INSERT INTO t3 SET id=4, c2=0, b=0xf09f98b1; INSERT INTO t3 SET id=4, c2=0, b=0xf09f98b1;
@@ -823,7 +839,9 @@ @@ -824,7 +840,9 @@
ALTER TABLE t3 CHANGE t phrase TEXT DEFAULT 0xc3a4c3a448, ALTER TABLE t3 CHANGE t phrase TEXT DEFAULT 0xc3a4c3a448,
CHANGE b b BLOB NOT NULL DEFAULT 'binary line of business'; CHANGE b b BLOB NOT NULL DEFAULT 'binary line of business';
affected rows: 4 affected rows: 4
...@@ -177,7 +175,7 @@ ...@@ -177,7 +175,7 @@
INSERT INTO t3 SET id=5, c2=9; INSERT INTO t3 SET id=5, c2=9;
Warnings: Warnings:
Note 1265 Data truncated for column 'c7' at row 1 Note 1265 Data truncated for column 'c7' at row 1
@@ -837,7 +855,9 @@ @@ -838,7 +856,9 @@
5 9 POLYGON((1 1,2 2,3 3,1 1)) 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 03:00:42 1970-01-01 ääH binary line of business 5 9 POLYGON((1 1,2 2,3 3,1 1)) 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 03:00:42 1970-01-01 ääH binary line of business
ALTER TABLE t3 DROP c3, DROP c7; ALTER TABLE t3 DROP c3, DROP c7;
affected rows: 0 affected rows: 0
...@@ -188,7 +186,7 @@ ...@@ -188,7 +186,7 @@
SELECT * FROM t3; SELECT * FROM t3;
id c2 c4 c5 c6 c8 phrase b id c2 c4 c5 c6 c8 phrase b
1 1 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 1970-01-01 The quick brown fox jumps over the lazy dog 1 1 1970-01-01 03:00:42 1970-01-01 03:00:42 NULL 1970-01-01 The quick brown fox jumps over the lazy dog
@@ -865,6 +885,8 @@ @@ -866,6 +886,8 @@
(id INT PRIMARY KEY, c1 VARCHAR(4000), c2 VARCHAR(4000), c3 VARCHAR(1000), (id INT PRIMARY KEY, c1 VARCHAR(4000), c2 VARCHAR(4000), c3 VARCHAR(1000),
p POINT NOT NULL DEFAULT ST_GeomFromText('POINT(0 0)'), SPATIAL INDEX(p)) p POINT NOT NULL DEFAULT ST_GeomFromText('POINT(0 0)'), SPATIAL INDEX(p))
ENGINE=InnoDB ROW_FORMAT=COMPACT; ENGINE=InnoDB ROW_FORMAT=COMPACT;
...@@ -197,7 +195,7 @@ ...@@ -197,7 +195,7 @@
BEGIN; BEGIN;
INSERT INTO big INSERT INTO big
SET id=1, c1=REPEAT('a', 200), c2=REPEAT('b', 200), c3=REPEAT('c', 159); SET id=1, c1=REPEAT('a', 200), c2=REPEAT('b', 200), c3=REPEAT('c', 159);
@@ -882,13 +904,15 @@ @@ -883,13 +905,15 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -215,7 +213,7 @@ ...@@ -215,7 +213,7 @@
CHECKSUM TABLE big; CHECKSUM TABLE big;
Table Checksum Table Checksum
test.big 1705165209 test.big 1705165209
@@ -905,7 +929,7 @@ @@ -906,7 +930,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -224,7 +222,7 @@ ...@@ -224,7 +222,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -918,7 +942,7 @@ @@ -919,7 +943,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -233,7 +231,7 @@ ...@@ -233,7 +231,7 @@
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,t4,big; DROP TABLE t1,t2,t3,t4,big;
@@ -1217,7 +1241,7 @@ @@ -1211,7 +1235,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -242,7 +240,7 @@ ...@@ -242,7 +240,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -1227,7 +1251,7 @@ @@ -1221,7 +1245,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -251,7 +249,7 @@ ...@@ -251,7 +249,7 @@
connection default; connection default;
BEGIN; BEGIN;
UPDATE t2 SET d1 = repeat(id, 200); UPDATE t2 SET d1 = repeat(id, 200);
@@ -1238,7 +1262,7 @@ @@ -1232,7 +1256,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -260,7 +258,7 @@ ...@@ -260,7 +258,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -1248,7 +1272,7 @@ @@ -1242,7 +1266,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -269,7 +267,7 @@ ...@@ -269,7 +267,7 @@
connection default; connection default;
ALTER TABLE t2 DROP p; ALTER TABLE t2 DROP p;
affected rows: 0 affected rows: 0
@@ -1369,7 +1393,7 @@ @@ -1367,7 +1391,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -278,7 +276,7 @@ ...@@ -278,7 +276,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -1392,7 +1416,7 @@ @@ -1390,7 +1414,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -287,7 +285,7 @@ ...@@ -287,7 +285,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -1405,7 +1429,7 @@ @@ -1403,7 +1427,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -296,11 +294,11 @@ ...@@ -296,11 +294,11 @@
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,t4,big; DROP TABLE t1,t2,t3,t4,big;
@@ -1523,6 +1547,6 @@ @@ -1514,6 +1538,6 @@
FROM information_schema.global_status FROM information_schema.global_status
WHERE variable_name = 'innodb_instant_alter_column'; WHERE variable_name = 'innodb_instant_alter_column';
instants instants
-60 -60
+61 +61
SET GLOBAL innodb_purge_rseg_truncate_frequency= @saved_frequency; SET GLOBAL innodb_purge_rseg_truncate_frequency= @saved_frequency;
SET GLOBAL innodb_file_format = @saved_format; SET GLOBAL innodb_instant_alter_column_allowed = @saved_allowance;
--- instant_alter.result @@ -5,7 +5,7 @@
+++ instant_alter,64k.result SET GLOBAL innodb_instant_alter_column_allowed = add_last;
@@ -2,7 +2,7 @@ call mtr.add_suppression("Cannot add field `.*` in table `test`.`.*` because after adding it, the row size is");
# MDEV-11369: Instant ADD COLUMN for InnoDB
#
CREATE TABLE t(a INT UNIQUE)ENGINE=InnoDB ROW_FORMAT=COMPACT; CREATE TABLE t(a INT UNIQUE)ENGINE=InnoDB ROW_FORMAT=COMPACT;
-ALTER TABLE t ADD e INT, ROW_FORMAT=COMPRESSED; -ALTER TABLE t ADD e INT, ROW_FORMAT=COMPRESSED;
+ALTER TABLE t ADD e INT, ROW_FORMAT=DYNAMIC; +ALTER TABLE t ADD e INT, ROW_FORMAT=DYNAMIC;
INSERT INTO t SET a=1; INSERT INTO t SET a=1;
SET @old_instant= SET @old_instant=
(SELECT variable_value FROM information_schema.global_status (SELECT variable_value FROM information_schema.global_status
@@ -33,17 +33,17 @@ @@ -36,17 +36,17 @@
`c` int(11) NOT NULL, `c` int(11) NOT NULL,
`d` int(11) NOT NULL, `d` int(11) NOT NULL,
UNIQUE KEY `a` (`a`) UNIQUE KEY `a` (`a`)
...@@ -30,7 +28,7 @@ ...@@ -30,7 +28,7 @@
DROP TABLE t; DROP TABLE t;
connect analyze, localhost, root; connect analyze, localhost, root;
connection default; connection default;
@@ -374,7 +374,7 @@ @@ -399,7 +399,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -39,7 +37,7 @@ ...@@ -39,7 +37,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -397,7 +397,7 @@ @@ -422,7 +422,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -48,7 +46,7 @@ ...@@ -48,7 +46,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -410,7 +410,7 @@ @@ -435,7 +435,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -56,8 +54,8 @@ ...@@ -56,8 +54,8 @@
+1 +1
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,big; DROP TABLE t1,t2,t3,t4,big;
@@ -734,7 +734,7 @@ @@ -883,7 +883,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -66,7 +64,7 @@ ...@@ -66,7 +64,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -757,7 +757,7 @@ @@ -906,7 +906,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -75,7 +73,7 @@ ...@@ -75,7 +73,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -770,7 +770,7 @@ @@ -919,7 +919,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -83,8 +81,8 @@ ...@@ -83,8 +81,8 @@
+1 +1
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,big; DROP TABLE t1,t2,t3,t4,big;
@@ -1094,7 +1094,7 @@ @@ -1367,7 +1367,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -93,7 +91,7 @@ ...@@ -93,7 +91,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -1117,7 +1117,7 @@ @@ -1390,7 +1390,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -102,7 +100,7 @@ ...@@ -102,7 +100,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -1130,7 +1130,7 @@ @@ -1403,7 +1403,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -110,4 +108,4 @@ ...@@ -110,4 +108,4 @@
+1 +1
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,big; DROP TABLE t1,t2,t3,t4,big;
--- instant_alter.result @@ -243,7 +243,7 @@
+++ instant_alter,8k.result
@@ -240,7 +240,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -9,7 +7,7 @@ ...@@ -9,7 +7,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -250,7 +250,7 @@ @@ -253,7 +253,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -18,7 +16,7 @@ ...@@ -18,7 +16,7 @@
connection default; connection default;
BEGIN; BEGIN;
UPDATE t2 SET d1 = repeat(id, 200); UPDATE t2 SET d1 = repeat(id, 200);
@@ -261,7 +261,7 @@ @@ -264,7 +264,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -27,7 +25,7 @@ ...@@ -27,7 +25,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -271,7 +271,7 @@ @@ -274,7 +274,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -36,7 +34,7 @@ ...@@ -36,7 +34,7 @@
connection default; connection default;
ALTER TABLE t2 DROP p; ALTER TABLE t2 DROP p;
affected rows: 0 affected rows: 0
@@ -374,7 +374,7 @@ @@ -399,7 +399,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -45,7 +43,7 @@ ...@@ -45,7 +43,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -397,7 +397,7 @@ @@ -422,7 +422,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -54,7 +52,7 @@ ...@@ -54,7 +52,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -410,7 +410,7 @@ @@ -435,7 +435,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -62,8 +60,8 @@ ...@@ -62,8 +60,8 @@
+5 +5
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,big; DROP TABLE t1,t2,t3,t4,big;
@@ -600,7 +600,7 @@ @@ -727,7 +727,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -72,7 +70,7 @@ ...@@ -72,7 +70,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -610,7 +610,7 @@ @@ -737,7 +737,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -81,7 +79,7 @@ ...@@ -81,7 +79,7 @@
connection default; connection default;
BEGIN; BEGIN;
UPDATE t2 SET d1 = repeat(id, 200); UPDATE t2 SET d1 = repeat(id, 200);
@@ -621,7 +621,7 @@ @@ -748,7 +748,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -90,7 +88,7 @@ ...@@ -90,7 +88,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -631,7 +631,7 @@ @@ -758,7 +758,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -99,7 +97,7 @@ ...@@ -99,7 +97,7 @@
connection default; connection default;
ALTER TABLE t2 DROP p; ALTER TABLE t2 DROP p;
affected rows: 0 affected rows: 0
@@ -734,7 +734,7 @@ @@ -883,7 +883,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -108,7 +106,7 @@ ...@@ -108,7 +106,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -757,7 +757,7 @@ @@ -906,7 +906,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -117,7 +115,7 @@ ...@@ -117,7 +115,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -770,7 +770,7 @@ @@ -919,7 +919,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -125,8 +123,8 @@ ...@@ -125,8 +123,8 @@
+5 +5
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,big; DROP TABLE t1,t2,t3,t4,big;
@@ -960,7 +960,7 @@ @@ -1211,7 +1211,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -135,7 +133,7 @@ ...@@ -135,7 +133,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -970,7 +970,7 @@ @@ -1221,7 +1221,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -144,7 +142,7 @@ ...@@ -144,7 +142,7 @@
connection default; connection default;
BEGIN; BEGIN;
UPDATE t2 SET d1 = repeat(id, 200); UPDATE t2 SET d1 = repeat(id, 200);
@@ -981,7 +981,7 @@ @@ -1232,7 +1232,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -153,7 +151,7 @@ ...@@ -153,7 +151,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
connection analyze; connection analyze;
@@ -991,7 +991,7 @@ @@ -1242,7 +1242,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/t2'; WHERE name = 'test/t2';
clust_index_size clust_index_size
...@@ -162,7 +160,7 @@ ...@@ -162,7 +160,7 @@
connection default; connection default;
ALTER TABLE t2 DROP p; ALTER TABLE t2 DROP p;
affected rows: 0 affected rows: 0
@@ -1094,7 +1094,7 @@ @@ -1367,7 +1367,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -171,7 +169,7 @@ ...@@ -171,7 +169,7 @@
connection default; connection default;
ALTER TABLE big ADD COLUMN ALTER TABLE big ADD COLUMN
(d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde', (d1 INT DEFAULT 0, d2 VARCHAR(20) DEFAULT 'abcde',
@@ -1117,7 +1117,7 @@ @@ -1390,7 +1390,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -180,7 +178,7 @@ ...@@ -180,7 +178,7 @@
connection default; connection default;
ROLLBACK; ROLLBACK;
CHECKSUM TABLE big; CHECKSUM TABLE big;
@@ -1130,7 +1130,7 @@ @@ -1403,7 +1403,7 @@
SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS SELECT clust_index_size FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
WHERE name = 'test/big'; WHERE name = 'test/big';
clust_index_size clust_index_size
...@@ -188,4 +186,4 @@ ...@@ -188,4 +186,4 @@
+5 +5
connection default; connection default;
InnoDB 0 transactions not purged InnoDB 0 transactions not purged
DROP TABLE t1,t2,t3,big; DROP TABLE t1,t2,t3,t4,big;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment