Debian Codegraph @

mysql-test/suite/maria/max_length.result

raw
1 drop table if exists t1,t2;
2 Warnings:
3 Note 1051 Unknown table 'test.t1,test.t2'
4 create table t1 (id int(10) unsigned not null auto_increment primary key, v varchar(2000), b blob) row_format=page max_rows=2 engine=aria;
5 create table t2 (id int(10) unsigned not null auto_increment primary key, v varchar(2000), b blob, key(v)) row_format=page max_rows=20000000 engine=aria;
6 Warnings:
7 Note 1071 Specified key was too long; max key length is 2300 bytes
8 show create table t1;
9 Table Create Table
10 t1 CREATE TABLE `t1` (
11 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
12 `v` varchar(2000) DEFAULT NULL,
13 `b` blob DEFAULT NULL,
14 PRIMARY KEY (`id`)
15 ) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci MAX_ROWS=2 PAGE_CHECKSUM=1 ROW_FORMAT=PAGE
16 show create table t2;
17 Table Create Table
18 t2 CREATE TABLE `t2` (
19 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
20 `v` varchar(2000) DEFAULT NULL,
21 `b` blob DEFAULT NULL,
22 PRIMARY KEY (`id`),
23 KEY `v` (`v`(575))
24 ) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci MAX_ROWS=20000000 PAGE_CHECKSUM=1 ROW_FORMAT=PAGE
25 lock tables t1 write,t2 write;
26 show table status like "t_";
27 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
28 t1 Aria 10 Page 0 0 8192 268320768 8192 0 1 # # # utf8mb4_uca1400_ai_ci NULL max_rows=2 row_format=PAGE transactional=1 536862720 N
29 t2 Aria 10 Page 0 0 8192 17592186011648 8192 0 1 # # # utf8mb4_uca1400_ai_ci NULL max_rows=20000000 row_format=PAGE transactional=1 35184372080640 N
30 insert into t1 values(null, repeat("ab",100),repeat("def",1000));
31 insert into t1 values(null, repeat("de",200),repeat("ghi",2000));
32 insert into t1 values(null, repeat("fe",300),repeat("ghi",3000));
33 insert into t1 values(null, repeat("gh",400),repeat("jkl",10000));
34 insert into t1 (v,b) select v,b from t2;
35 insert into t2 (v,b) select v,b from t1;
36 insert into t1 (v,b) select v,b from t2;
37 insert into t2 (v,b) select v,b from t1;
38 insert into t1 (v,b) select v,b from t2;
39 insert into t2 (v,b) select v,b from t1;
40 insert into t1 (v,b) select v,b from t2;
41 insert into t2 (v,b) select v,b from t1;
42 insert into t1 (v,b) select v,b from t2;
43 insert into t2 (v,b) select v,b from t1;
44 insert into t1 (v,b) select v,b from t2;
45 insert into t2 (v,b) select v,b from t1;
46 insert into t1 (v,b) select v,b from t2;
47 insert into t2 (v,b) select v,b from t1;
48 insert into t1 (v,b) select v,b from t2;
49 insert into t2 (v,b) select v,b from t1;
50 insert into t1 (v,b) select v,b from t2;
51 insert into t2 (v,b) select v,b from t1;
52 insert into t1 (v,b) select v,b from t2;
53 insert into t2 (v,b) select v,b from t1;
54 unlock tables;
55 insert into t1 (v,b) select v,b from t2;
56 ERROR HY000: The table 't1' is full
57 check table t1;
58 Table Op Msg_type Msg_text
59 test.t1 check warning Datafile is almost full, 268230656 of 268320768 used
60 test.t1 check status OK
61 insert into t1 values(null, repeat("gh",400),repeat("jkl",10000));
62 ERROR HY000: The table 't1' is full
63 check table t1;
64 Table Op Msg_type Msg_text
65 test.t1 check warning Datafile is almost full, 268230656 of 268320768 used
66 test.t1 check status OK
67 truncate table t1;
68 insert into t1 (v,b) select v,b from t2;
69 ERROR HY000: The table 't1' is full
70 check table t1;
71 Table Op Msg_type Msg_text
72 test.t1 check warning Datafile is almost full, 268230656 of 268320768 used
73 test.t1 check status OK
74 drop table t1,t2;
75 create table t1 (
76 c1 int unsigned,
77 c2 char(80)
78 ) Engine=ARIA ROW_FORMAT=FIXED min_rows=1000000;
79 show create table t1;
80 Table Create Table
81 t1 CREATE TABLE `t1` (
82 `c1` int(10) unsigned DEFAULT NULL,
83 `c2` char(80) DEFAULT NULL
84 ) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci MIN_ROWS=1000000 PAGE_CHECKSUM=1 ROW_FORMAT=FIXED
85 insert into t1 select seq,seq from seq_1_to_100000;
86 create or replace table t1 (
87 c1 int unsigned,
88 c2 char(80)
89 ) Engine=ARIA ROW_FORMAT=FIXED;
90 show create table t1;
91 Table Create Table
92 t1 CREATE TABLE `t1` (
93 `c1` int(10) unsigned DEFAULT NULL,
94 `c2` char(80) DEFAULT NULL
95 ) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci PAGE_CHECKSUM=1 ROW_FORMAT=FIXED
96 insert into t1 select seq,seq from seq_1_to_100000;
97 create or replace table t1 (
98 c1 int unsigned,
99 c2 char(80)
100 ) Engine=ARIA ROW_FORMAT=PAGE TRANSACTIONAL=0;
101 show create table t1;
102 Table Create Table
103 t1 CREATE TABLE `t1` (
104 `c1` int(10) unsigned DEFAULT NULL,
105 `c2` char(80) DEFAULT NULL
106 ) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci PAGE_CHECKSUM=1 ROW_FORMAT=PAGE TRANSACTIONAL=0
107 insert into t1 select seq,seq from seq_1_to_100000;
108 create or replace table t1 (
109 c1 int unsigned,
110 c2 char(80)
111 ) Engine=ARIA ROW_FORMAT=FIXED MAX_ROWS=10;
112 show create table t1;
113 Table Create Table
114 t1 CREATE TABLE `t1` (
115 `c1` int(10) unsigned DEFAULT NULL,
116 `c2` char(80) DEFAULT NULL
117 ) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci MAX_ROWS=10 PAGE_CHECKSUM=1 ROW_FORMAT=FIXED
118 insert into t1 select seq,seq from seq_1_to_100000;
119 ERROR HY000: The table 't1' is full
120 select count(*) from t1;
121 count(*)
122 65535
123 create or replace table t1 (
124 c1 int unsigned,
125 c2 char(80)
126 ) Engine=ARIA ROW_FORMAT=DYNAMIC MAX_ROWS=10;
127 show create table t1;
128 Table Create Table
129 t1 CREATE TABLE `t1` (
130 `c1` int(10) unsigned DEFAULT NULL,
131 `c2` char(80) DEFAULT NULL
132 ) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci MAX_ROWS=10 PAGE_CHECKSUM=1 ROW_FORMAT=DYNAMIC
133 insert into t1 select seq,seq from seq_1_to_100000;
134 ERROR HY000: The table 't1' is full
135 select count(*) from t1;
136 count(*)
137 3276
138 check table t1;
139 Table Op Msg_type Msg_text
140 test.t1 check warning Datafile is almost full, 65520 of 65535 used
141 test.t1 check status OK
142 create or replace table t1 (
143 c1 int unsigned,
144 c2 char(80)
145 ) Engine=ARIA ROW_FORMAT=PAGE MAX_ROWS=10;
146 show create table t1;
147 Table Create Table
148 t1 CREATE TABLE `t1` (
149 `c1` int(10) unsigned DEFAULT NULL,
150 `c2` char(80) DEFAULT NULL
151 ) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci MAX_ROWS=10 PAGE_CHECKSUM=1 ROW_FORMAT=PAGE
152 insert into t1 select seq,seq from seq_1_to_100000;
153 select count(*) from t1;
154 count(*)
155 100000
156 check table t1;
157 Table Op Msg_type Msg_text
158 test.t1 check status OK
159 drop table t1;
160 create or replace table t1 (
161 c1 int unsigned,
162 c2 char(80)
163 ) Engine=ARIA ROW_FORMAT=PAGE MAX_ROWS=10;
164 show create table t1;
165 Table Create Table
166 t1 CREATE TABLE `t1` (
167 `c1` int(10) unsigned DEFAULT NULL,
168 `c2` char(80) DEFAULT NULL
169 ) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci MAX_ROWS=10 PAGE_CHECKSUM=1 ROW_FORMAT=PAGE
170 insert into t1 select seq,seq from seq_1_to_10000000;
171 ERROR HY000: The table 't1' is full
172 select count(*) from t1;
173 count(*)
174 6189940
175 check table t1;
176 Table Op Msg_type Msg_text
177 test.t1 check warning Datafile is almost full, 268320768 of 268320768 used
178 test.t1 check status OK
179 show table status like "t1";
180 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
181 t1 Aria 10 Page 6189940 43 268320768 268320768 8192 0 NULL # # # utf8mb4_uca1400_ai_ci NULL max_rows=10 row_format=PAGE transactional=1 137438945280 N
182 create index seq on t1(c1);
183 show table status like "t1";
184 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
185 t1 Aria 10 Page 6189940 43 268320768 268320768 49750016 0 NULL # # # utf8mb4_uca1400_ai_ci NULL max_rows=10 page_checksum=1 row_format=PAGE transactional=1 536862720 N
186 drop table t1;