1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-19713 Remove big_tables system variable

mark big_tables deprecated, the server can put temp tables on disk
as needed avoiding "table full" errors.

in case someone would really need to force a tmp table to be created
on disk from the start and for testing allow tmp_memory_table_size
to be set to 0.

fix tests to use that instead (and add a test that it actually
works).

make sure in-memory TREE size limit is never 0 (it's [ab]using
tmp_memory_table_size at the moment)

remove few sys_vars.*_basic tests
This commit is contained in:
Sergei Golubchik
2019-09-18 14:17:26 +02:00
parent de9ef03ae6
commit cd41ffe1f1
47 changed files with 453 additions and 1155 deletions

View File

@ -2138,13 +2138,13 @@ SELECT * FROM cte;
--echo # MDEV-15575: using recursive cte with big_tables enabled
--echo #
set big_tables=1;
set tmp_memory_table_size=0; # force on-disk tmp table
with recursive qn as
(select 123 as a union all select 1+a from qn where a<130)
select * from qn;
set big_tables=default;
set tmp_memory_table_size=default;
--echo #
--echo # MDEV-15571: using recursive cte with big_tables enabled
@ -2153,7 +2153,7 @@ set big_tables=default;
create table t1 (a bigint);
insert into t1 values(1);
set big_tables=1;
set tmp_memory_table_size=0; # force on-disk tmp table
--error ER_DATA_OUT_OF_RANGE
with recursive qn as
@ -2164,7 +2164,7 @@ with recursive qn as
)
select * from qn;
set big_tables=default;
set tmp_memory_table_size=default;
drop table t1;
@ -2173,7 +2173,7 @@ drop table t1;
--echo # when recursive tables are accessed by key
--echo #
SET big_tables=1;
set tmp_memory_table_size=0; # force on-disk tmp table
CREATE TABLE t1 (id int, name char(10), leftpar int, rightpar int);
INSERT INTO t1 VALUES
@ -2202,7 +2202,7 @@ eval EXPLAIN $q;
DROP TABLE t1,t2;
SET big_tables=0;
set tmp_memory_table_size=default;
--echo #
--echo # MDEV-15840: recursive tables are accessed by key