mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
3f2d9a902e
The problem was that the internal temporary table created for information_schema overflow to MyISAM because it has a row width of > 3000 characters, which filled the in memory temporary tables. Fix was to increase size for the heap table.
16 lines
704 B
Text
16 lines
704 B
Text
#
|
|
# MDEV-4260 Don't create frm files for temporary tables
|
|
#
|
|
|
|
# Ensure we don't overflow the internal heap table size in the join
|
|
set @@session.max_heap_table_size=16*1024*1024;
|
|
create table t1 select * from information_schema.session_status where variable_name like 'Opened%';
|
|
create temporary table t2 (a int) engine=memory;
|
|
select variable_name, session_status.variable_value - t1.variable_value
|
|
from information_schema.session_status join t1 using (variable_name);
|
|
let $tmpdir= `select @@tmpdir`;
|
|
--list_files $tmpdir/ #sql*
|
|
truncate table t2;
|
|
select variable_name, session_status.variable_value - t1.variable_value
|
|
from information_schema.session_status join t1 using (variable_name);
|
|
drop table t1;
|