[MDEV-12572] Support ALGORITHM=/LOCK= syntax for CREATE/DROP INDEX Created: 2017-04-24 Updated: 2023-11-30 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major |
| Reporter: | Andreas Neumann | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | algorithm, drop-index, innodb, lock | ||
| Description |
|
I used MariaDB as alternative to a MySQL-Server. For a software-package I have to make updates for an existing database with prepared sql-files. After an update from mariadb 5 to mariadb 10.1 can use ALGRITHM in CREATE INDEX - queries. But the DROP INDEX - queries (DROP INDEX name ON tbl ALGORITHM = INPLACE LOCK = NONE;) dies with following Message:
The message is the same errormessage, which I have in mariaDB 5 for my CREATE INDEX ..., ALGORITHM = INPLACE, LOCK = NONE;. So it seems, that the documented ALGORITHM-Function isn't implemented yet? |
| Comments |
| Comment by Alice Sherepa [ 2017-04-26 ] | ||||||||||||||||||||||||
|
Confirmed with a testcase below :
| ||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2017-05-12 ] | ||||||||||||||||||||||||
|
We cannot add new syntax in 10.0 or any other GA version, see https://mariadb.com/kb/en/mariadb/release-criteria/ So, I've moved this to 10.3. Meanwhile, I've corrected the manual, apparently this syntax was never supported. As a workaround you can use ALTER TABLE ... DROP INDEX |