1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

Scripts: VTMD table [closes #122]

This commit is contained in:
kevg
2017-05-19 23:27:40 +03:00
committed by Aleksey Midenkov
parent abba11e6c4
commit 45f6acd296
41 changed files with 173 additions and 27 deletions

View File

@@ -161,6 +161,19 @@ drop procedure concat_exec2;
drop procedure concat_exec3;
drop function get_historical_table_name;
drop procedure drop_last_historical;
select * from mysql.vtmd_template;
start end name frm_image col_renames
show create table mysql.vtmd_template;
Table Create Table
vtmd_template CREATE TABLE `vtmd_template` (
`start` bigint(20) unsigned GENERATED ALWAYS AS ROW START COMMENT 'TRX_ID of table lifetime start',
`end` bigint(20) unsigned NOT NULL GENERATED ALWAYS AS ROW END COMMENT 'TRX_ID of table lifetime end',
`name` varchar(64) COLLATE utf8_bin NOT NULL COMMENT 'Table name during period [start, end)',
`frm_image` blob NOT NULL COMMENT 'Table structure during period [start, end)',
`col_renames` blob DEFAULT NULL COMMENT 'Column name mapping from previous lifetime',
PRIMARY KEY (`end`),
PERIOD FOR SYSTEM_TIME (`start`, `end`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0 WITH SYSTEM VERSIONING
call verify_vtq;
No A B C D
1 1 1 1 1