mariadb/mysql-test/suite/innodb_i_s
Marko Mäkelä 5407117a59 MDEV-22343 Remove SYS_TABLESPACES and SYS_DATAFILES
The InnoDB internal tables SYS_TABLESPACES and SYS_DATAFILES as well as the
INFORMATION_SCHEMA views INNODB_SYS_TABLESPACES and INNODB_SYS_DATAFILES
were introduced in MySQL 5.6 for no good reason in
mysql/mysql-server/commit/e9255a22ef16d612a8076bc0b34002bc5a784627
when the InnoDB support for the DATA DIRECTORY attribute was introduced.

The file system should be the authoritative source of information on files.
Storing information about file system paths in the file system (symlinks,
or even the .isl files that were unfortunately chosen as the solution) is
sufficient. If information is additionally stored in some hidden tables
inside the InnoDB system tablespace, everything unnecessarily becomes
more complicated, because more copies of data mean more opportunity
for the copies to be out of sync, and because modifying the data in
the system tablespace in the desired way might not be possible at all
without modifying the InnoDB source code. So, the copy in the system
tablespace basically is a redundant, non-authoritative source of
information.

We will stop creating or accessing the system tables SYS_TABLESPACES
and SYS_DATAFILES.

We will also remove the view
INFORMATION_SCHEMA.INNODB_SYS_DATAFILES along with SYS_DATAFILES.

The view
INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES will be repurposed
to directly reflect fil_system.space_list. The column
PAGE_SIZE, which would always contain the value of
the GLOBAL read-only variable innodb_page_size, is
removed. The column ZIP_PAGE_SIZE, which would actually
contain the physical page size of a page, is renamed to
PAGE_SIZE. Finally, a new column FILENAME is added, as a
replacement of SYS_DATAFILES.PATH.

This will also
address MDEV-21801 (files that were created before upgrading
to MySQL 5.6 or MariaDB 10.0 or later were never registered
in SYS_TABLESPACES or SYS_DATAFILES) and
MDEV-21801 (information about the system tablespace is not stored
in SYS_TABLESPACES or SYS_DATAFILES).
2020-11-11 11:15:11 +02:00
..
innodb_buffer_page.result MDEV-15053 Reduce buf_pool_t::mutex contention 2020-06-05 12:35:46 +03:00
innodb_buffer_page.test MDEV-21537 InnoDB INFORMATION_SCHEMA tables fail to define DEFAULT for ENUM NOT NULL 2020-01-22 08:04:53 +04:00
innodb_buffer_page_lru.result MDEV-15053 Reduce buf_pool_t::mutex contention 2020-06-05 12:35:46 +03:00
innodb_buffer_page_lru.test MDEV-21537 InnoDB INFORMATION_SCHEMA tables fail to define DEFAULT for ENUM NOT NULL 2020-01-22 08:04:53 +04:00
innodb_buffer_pool_stats.result MDEV-15058: Revert the changes to INFORMATION_SCHEMA 2020-02-12 20:54:59 +02:00
innodb_buffer_pool_stats.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmp.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmp.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmp.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmp_per_index.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_cmp_per_index.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmp_per_index_reset.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmp_per_index_reset.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_cmp_per_index_reset.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmp_reset.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmp_reset.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmp_reset.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmpmem.result MDEV-15058: Revert the changes to INFORMATION_SCHEMA 2020-02-12 20:54:59 +02:00
innodb_cmpmem.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmpmem_reset.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_cmpmem_reset.result MDEV-15058: Revert the changes to INFORMATION_SCHEMA 2020-02-12 20:54:59 +02:00
innodb_cmpmem_reset.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_being_deleted.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_being_deleted.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_being_deleted.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_config.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_config.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_config.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_default_stopword.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_default_stopword.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_default_stopword.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_deleted.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_deleted.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_deleted.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_index_cache.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_index_cache.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_index_cache.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_index_table.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_index_table.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_ft_index_table.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_lock_waits.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_lock_waits.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_locks.result MDEV-21537 InnoDB INFORMATION_SCHEMA tables fail to define DEFAULT for ENUM NOT NULL 2020-01-22 08:04:53 +04:00
innodb_locks.test MDEV-21537 InnoDB INFORMATION_SCHEMA tables fail to define DEFAULT for ENUM NOT NULL 2020-01-22 08:04:53 +04:00
innodb_metrics.result MDEV-21537 InnoDB INFORMATION_SCHEMA tables fail to define DEFAULT for ENUM NOT NULL 2020-01-22 08:04:53 +04:00
innodb_metrics.test MDEV-21537 InnoDB INFORMATION_SCHEMA tables fail to define DEFAULT for ENUM NOT NULL 2020-01-22 08:04:53 +04:00
innodb_mutexes.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_mutexes.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_mutexes.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_columns.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_sys_columns.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_fields.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_sys_fields.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_foreign.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_foreign.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_foreign_cols.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_sys_foreign_cols.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_indexes.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_sys_indexes.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_semaphore_waits.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_semaphore_waits.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_semaphore_waits.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_tables.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_sys_tables.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_tablespaces.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_tablespaces.result MDEV-22343 Remove SYS_TABLESPACES and SYS_DATAFILES 2020-11-11 11:15:11 +02:00
innodb_sys_tablespaces.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_tablestats.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_tablestats.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_sys_tablestats.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_virtual.result MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_sys_virtual.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_tablespaces_encryption.opt MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_tablespaces_encryption.result MDEV-19940 Clean up INFORMATION_SCHEMA.INNODB_ tables 2019-07-04 00:09:16 +03:00
innodb_tablespaces_encryption.test MDEV-19810 Reuse new I_S table definition helper classes for InnoDB 2019-06-20 11:40:33 +04:00
innodb_trx.result MDEV-21537 InnoDB INFORMATION_SCHEMA tables fail to define DEFAULT for ENUM NOT NULL 2020-01-22 08:04:53 +04:00
innodb_trx.test MDEV-21537 InnoDB INFORMATION_SCHEMA tables fail to define DEFAULT for ENUM NOT NULL 2020-01-22 08:04:53 +04:00