[MDEV-4783] New .frm file format Created: 2013-07-15 Updated: 2019-04-16 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | roberto spadim | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 4 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Instead of work around old unireg frm file, we could create a new human readable, with jornaling (maybe transactional) and with big limit (for enum fields for example) that could remove limits of today unireg frm format (enum limit, partition informations, etc) an idea could be using JSON or YAML, or like drizzle use protobuff that allow a binary fast parser, or maybe something like VIEW frm file from email at maria-developers: -------- i like the ALTER idea, something like ALTER TABLE xxxx FRM_FORMAT='OLD/JSON/YAML/TEXT/xyz/protobuff/.... etc' >It also could be of use to have a tool that could offline convert the files between the two format in case MariaDB would have to be downgraded or replaced by MySQL or another fork that does not support the new definition file format. it's nice too, i put a MDEV when my frm file crashed, maybe we could put this idea there: https://mariadb.atlassian.net/browse/MDEV-4637 what format we should use? what format is easy to develop, fast, compact, human compatible, etc...? json,yaml,protobuf,text file like view format? any idea? i think that at least file should have a hash (md5 for example) to easly find crashed files, should be easly readable by humans (json/yaml/view like) and fast to read/write (protobuf for example or some binary format) i was thinking about something like (json example): \n the MD5SUM is a MD5 value from "{" to end of BINARY FORMAT (before "\n") what you think guys? |
| Comments |
| Comment by roberto spadim [ 2013-07-15 ] |
|
hi sergey, please remove the Fix Version/s: 10.1.0 |
| Comment by Michael Widenius [ 2014-05-16 ] |
|
The plan when we implemented views was to be able to use this format also for new .frm files. For some time the server should be able to read both the old binary .frm format and the new format (to allow one to be used as a slave for old masters). |