Skip to content

Commit 7a9cfde

Browse files
authored
Update TiDB configuration max-index-length (pingcap#21751) (pingcap#21757)
1 parent d3ecefa commit 7a9cfde

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tidb-configuration-file.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,13 @@ The TiDB configuration file supports more options than command-line parameters.
156156
- Sets the maximum allowable length of the newly created index.
157157
- Default value: `3072`
158158
- Unit: byte
159-
- Currently, the valid value range is `[3072, 3072*4]`. MySQL and TiDB (version < v3.0.11) do not have this configuration item, but both limit the length of the newly created index. This limit in MySQL is `3072`. In TiDB (version =< 3.0.7), this limit is `3072*4`. In TiDB (3.0.7 < version < 3.0.11), this limit is `3072`. This configuration is added to be compatible with MySQL and earlier versions of TiDB.
159+
- Range: `[3072, 3072*4]`
160+
- Compatibility:
161+
- MySQL: the maximum index length is fixed at 3072 bytes.
162+
- Earlier versions of TiDB:
163+
- v3.0.7 and earlier: the maximum index length is fixed at 3072 × 4 bytes.
164+
- v3.0.8 ~ v3.0.10: the maximum index length is fixed at 3072 bytes.
165+
- v3.0.11 and later versions: TiDB introduces the `max-index-length` configuration item to ensure compatibility with different TiDB versions and with MySQL.
160166

161167
### `table-column-count-limit` <span class="version-mark">New in v5.0</span>
162168

0 commit comments

Comments
 (0)