[MDEV-19294] Remove TABLESPACE-related commands Created: 2019-04-19 Updated: 2024-02-06 Resolved: 2024-02-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Data Definition - Create Table |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Michael Widenius |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
MariaDB Server's grammar supports the CREATE TABLESPACE, ALTER TABLESPACE, and DROP TABLESPACE statements. These statements seem to have been inherited from MySQL NDB Cluster. MySQL 5.7 supports these statements for InnoDB as well, but we chose not to merge that support in MariaDB 10.2. https://mariadb.com/kb/en/library/alter-tablespace/ https://mariadb.com/kb/en/library/create-tablespace/ https://mariadb.com/kb/en/library/drop-tablespace/ The MySQL-compatible statements will actually still succeed on MariaDB, but will throw a warning. e.g.:
Is there any reason to keep these in MariaDB? |
| Comments |
| Comment by Geoff Montee (Inactive) [ 2020-12-03 ] | ||||||||||||||||||||||||||||||
|
The CREATE TABLESPACE privilege is also present, even though it does not apply to MariaDB. It is present in multiple places. It is present in SHOW PRIVILEGES:
It is present in mysql.user:
And it is present in the bitmask used in mysql.global_priv, which is referenced by mysql.user:
And if you GRANT ALL to a user, then they will get this privilege:
| ||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2024-02-06 ] | ||||||||||||||||||||||||||||||
|
For MySQL compatibility, we have to keep the syntax (and give warnings). I did remove in 2021 ALTER TABLESPACE, DROP TABLESPACE and the 'alter_tablespace' status variable. | ||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2024-02-06 ] | ||||||||||||||||||||||||||||||
|
Needed for MySQL compatibility |