mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added server variable compression_default, which if 1/ON sets compression on for all new InnoDB/XtraDB tables by default by setting PAGE_COMPRESSED=1
This commit is contained in:
@ -123,5 +123,31 @@ drop procedure innodb_insert_proc;
|
||||
drop table innodb_normal;
|
||||
drop table innodb_compact;
|
||||
drop table innodb_dynamic;
|
||||
CREATE TABLE no_compression (id INT NOT NULL, name VARCHAR(200)) ENGINE=InnoDB;
|
||||
SET SESSION innodb_compression_default = 1;
|
||||
CREATE TABLE default_compression (id INT NOT NULL, name VARCHAR(200)) ENGINE=InnoDB;
|
||||
CREATE TABLE explicit_no_compression (id INT NOT NULL, name VARCHAR(200)) ENGINE=InnoDB PAGE_COMPRESSED=0;
|
||||
SHOW CREATE TABLE no_compression;
|
||||
Table Create Table
|
||||
no_compression CREATE TABLE `no_compression` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(200) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
SHOW CREATE TABLE default_compression;
|
||||
Table Create Table
|
||||
default_compression CREATE TABLE `default_compression` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(200) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `PAGE_COMPRESSED`='ON'
|
||||
SHOW CREATE TABLE explicit_no_compression;
|
||||
Table Create Table
|
||||
explicit_no_compression CREATE TABLE `explicit_no_compression` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(200) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `PAGE_COMPRESSED`=0
|
||||
DROP TABLE no_compression;
|
||||
DROP TABLE default_compression;
|
||||
DROP TABLE explicit_no_compression;
|
||||
SET SESSION innodb_compression_default = 0;
|
||||
Warnings:
|
||||
Warning 131 Using innodb_file_format is deprecated and the parameter may be removed in future releases. See http://dev.mysql.com/doc/refman/5.7/en/innodb-file-format.html
|
||||
|
Reference in New Issue
Block a user