Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
introduce a new innodb command line option that will make compressed tables writable. by default they should be read-only. if the write support is enabled, it should print a warning on startup.
This will allow users to prepare for MDEV-22367
Attachments
Issue Links
- causes
-
MDEV-24503 Assertion `m_prebuilt->trx == thd_to_trx(m_user_thd)' failed in ha_innobase::is_read_only
-
- Closed
-
-
MDEV-25100 Read-only table with ROW_FORMAT=COMPRESSED is still updateable through foreign key cascade
-
- Closed
-
-
MDEV-27736 Allow seamless upgrade despite ROW_FORMAT=COMPRESSED
-
- Closed
-
- relates to
-
MDEV-25099 Inconsistent error upon updating read-only table with ROW_FORMAT=COMPRESSED
-
- Stalled
-
-
MDEV-12152 KEY_BLOCK_SIZE strangeness in ALTER TABLE
-
- Open
-
-
MDEV-22367 Remove write support for ROW_FORMAT=COMPRESSED
-
- Closed
-
-
MDEV-26400 ALTER TABLE does not remove KEY_BLOCK_SIZE for non-Compressed InnoDB tables
-
- Stalled
-
- links to
olafbuitelaar, thank you for your feedback. ALTER TABLE should only read the clustered index, not secondary indexes. In fact, rebuilding a table would fix corrupted secondary indexes (I hope that
MDEV-22373is fixed now, but it is too early to tell).I hope that page_compressed together with compressed columns (
MDEV-11371) would make an acceptable replacement of ROW_FORMAT=COMPRESSED. One piece that is missing is something that allows us to avoid the problematic use of sparse files in page_compressed. I think that we must provide an option to write page_compressed tables as normal non-sparse files and let the a smart SSD compress away the sequences of zero bytes, as explained in https://mariadb.org/fest2020/ssd/.