This repository has been archived by the owner on Jun 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fully support MariaDB column compression
MariaDB introduced storage-engine-independent column compression in 10.3.2: https://mariadb.com/kb/en/storage-engine-independent-column-compression/ The compression modifier is exposed as part of the column type in information_schema.columns.column_type, which means it was already supported for diff operations by this package automatically. However, there were some minor bugs with the handling previously, as the compression modifier would unexpectedly be present in Column.TypeInDB. This commit now detects the compression modifier and moves it to new field Column.Compression. The handling of Percona Server's implementation of column compression has now been unified to also use Column.Compression; old field Column.ColumnFormat has been eliminated as it no longer serves any purpose. (This is technically a breaking change, however this package is still pre-1.0.)
- Loading branch information
Showing
5 changed files
with
91 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Table using MariaDB's column compression | ||
|
||
SET foreign_key_checks=0; | ||
SET sql_log_bin=0; | ||
|
||
use testing | ||
|
||
CREATE TABLE colcompr( | ||
id int unsigned NOT NULL, | ||
body text compressed=zlib character set utf8mb4, | ||
PRIMARY KEY (id) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Table using Percona Server's column compression | ||
|
||
SET foreign_key_checks=0; | ||
SET sql_log_bin=0; | ||
|
||
use testing | ||
|
||
CREATE TABLE colcompr( | ||
id int unsigned NOT NULL, | ||
body text character set utf8mb4 COLUMN_FORMAT COMPRESSED, | ||
PRIMARY KEY (id) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |