Skip to content

Commit

Permalink
Update limited-sql-features about serverless (#16204)
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyuqing authored Mar 1, 2024
1 parent 6902ccc commit 312f207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ The following *table_options* are supported. Other options such as `AVG_ROW_LENG
| `AUTO_INCREMENT` | The initial value of the increment field | `AUTO_INCREMENT` = 5 |
| [`SHARD_ROW_ID_BITS`](/shard-row-id-bits.md)| To set the number of bits for the implicit `_tidb_rowid` shards |`SHARD_ROW_ID_BITS` = 4|
|`PRE_SPLIT_REGIONS`| To pre-split `2^(PRE_SPLIT_REGIONS)` Regions when creating a table |`PRE_SPLIT_REGIONS` = 4|
|`AUTO_ID_CACHE`| To set the auto ID cache size in a TiDB instance. By default, TiDB automatically changes this size according to allocation speed of auto ID |`AUTO_ID_CACHE` = 200. Note that this option is not available on [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless) clusters.|
|`AUTO_ID_CACHE`| To set the auto ID cache size in a TiDB instance. By default, TiDB automatically changes this size according to allocation speed of auto ID |`AUTO_ID_CACHE` = 200 |
|`AUTO_RANDOM_BASE`| To set the initial incremental part value of auto_random. This option can be considered as a part of the internal interface. Users can ignore this parameter |`AUTO_RANDOM_BASE` = 0|
| `CHARACTER SET` | To specify the [character set](/character-set-and-collation.md) for the table | `CHARACTER SET` = 'utf8mb4' |
| `COMMENT` | The comment information | `COMMENT` = 'comment info' |
Expand Down
7 changes: 2 additions & 5 deletions tidb-cloud/limited-sql-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ TiDB Cloud works with almost all workloads that TiDB supports, but there are som
| `SHOW PLUGINS` | Supported | Not supported [^8] |
| `SHOW PUMP STATUS` | Not supported [^7] | Not supported [^7] |
| `SHUTDOWN` | Not supported [^4] | Not supported [^4] |
| `CREATE TABLE ... AUTO_ID_CACHE` | Supported | Not supported [^12] |

## Functions and operators

Expand Down Expand Up @@ -134,7 +133,7 @@ TiDB Cloud works with almost all workloads that TiDB supports, but there are som
| `max_allowed_packet` | No limitation | Read-only [^11] |
| `plugin_dir` | No limitation | Not supported [^8] |
| `plugin_load` | No limitation | Not supported [^8] |
| `require_secure_transport` | Not supported [^13] | Read-only [^11] |
| `require_secure_transport` | Not supported [^12] | Read-only [^11] |
| `skip_name_resolve` | No limitation | Read-only [^11] |
| `sql_log_bin` | No limitation | Read-only [^11] |
| `tidb_cdc_write_source` | No limitation | Read-only [^11] |
Expand Down Expand Up @@ -246,6 +245,4 @@ TiDB Cloud works with almost all workloads that TiDB supports, but there are som

[^11]: The variable is read-only on TiDB Serverless.

[^12]: Customizing cache size using [`AUTO_ID_CACHE`](/auto-increment.md#cache-size-control) is temporarily unavailable on TiDB Serverless.

[^13]: Not supported. Enabling `require_secure_transport` for TiDB Dedicated clusters will result in SQL client connection failures.
[^12]: Not supported. Enabling `require_secure_transport` for TiDB Dedicated clusters will result in SQL client connection failures.

0 comments on commit 312f207

Please sign in to comment.