Bug #112998 ALTER index VISIBLE/INVISIBLE with ALGORITHM=INSTANT
Submitted: 8 Nov 2023 0:31 Modified: 5 Feb 2024 22:14
Reporter: Piotr Biel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any

[8 Nov 2023 0:31] Piotr Biel
Description:
Documentation states that "Index type modification" can be done using INSTANT algorithm but at the same time there an info that VISIBLE/INVISIBLE happens in-place (INPLACE?).

Not really sure if this is just a request to improve online-ddl documentation or feature request ;) Probably both.

Seems like this may be the perfect case for INSTANT since indexes are being maintained by database anyway. Seems like a relatively small change that can be done this way.

How to repeat:
mysql> ALTER TABLE mytest_table ALTER INDEX my_test_index VISIBLE, ALGORITHM=INSTANT;
ERROR 1845 (0A000): ALGORITHM=INSTANT is not supported for this operation. Try ALGORITHM=COPY/INPLACE.
mysql>
[8 Nov 2023 11:28] MySQL Verification Team
Hi Mr. Beil,

Thank you for your bug report.

Unfortunately, this operation can not be done instantly.

But, there is not a single statement in the entire Manual about these attributes that you are changing.

This is now a verified documentation bug for versions 8.0 and higher.
[5 Feb 2024 22:14] Jon Stephens
Fixed in the Manuals for MySQL 8.0 and later versions, in mysqldoc rev 77774.

Closed.
[6 Feb 2024 10:58] MySQL Verification Team
Thank you, Jon.