[MDEV-16766] mysqldump: dump history in XML Created: 2018-07-16 Updated: 2018-07-16 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Backup, Versioned Tables |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Aleksey Midenkov | Assignee: | Aleksey Midenkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
myqldump should support dump-history in --xml mode. This imposes following requirements: 1. --xml option produces history. System fields contain Extra="ROW START/END GENERATED" option. If system fields are system-hidden they are included in <table_structure> anyway with Extra="SYSTEM INVISIBLE ROW START/END GENERATED" option. <table_structure> includes System_versioning="Y" option. Example:
2. LOAD XML loads such data in case system_versioning_modify_history is ON. When system_versioning_modify_history is OFF LOAD XML fails to set row_start, row_end fields. 3. mysqlimport imports such tables with history. |