📣
TiDB Cloud Premium 开放公测中。为企业级工作负载提供无限扩展、即时弹性伸缩和高级安全保障。此页面由 AI 自动翻译,英文原文请见此处。

TiDB X 实例上的 SQL 功能限制



TiDB X 实例是一种面向服务的 TiDB Cloud 产品,基于 TiDB X architecture 构建,例如 TiDB Cloud Starter、Essential 或 Premium 实例。

TiDB Cloud 适用于 TiDB 支持的几乎所有工作负载,但 TiDB Self-Managed 与 TiDB Cloud 之间仍存在一些功能差异。本文档介绍 TiDB Cloud Starter、Essential 和 Premium 在 SQL 功能方面的限制。我们正在持续缩小 TiDB Self-Managed 与 TiDB Cloud 之间的功能差距。如果你需要这些尚未覆盖的功能或能力,请联系我们提交功能请求。

语句

放置策略与范围管理

StatementTiDB Cloud PremiumTiDB Cloud Starter and TiDB Cloud Essential
ALTER PLACEMENT POLICY不支持 1不支持 1
ALTER RANGE不支持不支持
CREATE PLACEMENT POLICY不支持 1不支持 1
DROP PLACEMENT POLICY不支持 1不支持 1
SHOW CREATE PLACEMENT POLICY不支持 1不支持 1
SHOW PLACEMENT不支持 1不支持 1
SHOW PLACEMENT FOR不支持 1不支持 1
SHOW PLACEMENT LABELS不支持 1不支持 1
SHOW TABLE REGIONS支持不支持 1
SPLIT REGION支持不支持 1

资源组

StatementTiDB Cloud PremiumTiDB Cloud Starter and TiDB Cloud Essential
ALTER RESOURCE GROUP不支持 2不支持 2
CALIBRATE RESOURCE不支持 2不支持 2
CREATE RESOURCE GROUP不支持 2不支持 2
DROP RESOURCE GROUP不支持 2不支持 2
SET RESOURCE GROUP不支持 2不支持 2
SHOW CREATE RESOURCE GROUP不支持 2不支持 2

其他

StatementTiDB Cloud PremiumTiDB Cloud Starter and TiDB Cloud Essential
BACKUP不支持 3不支持 3
SHOW BACKUPS不支持 3不支持 3
RESTORE不支持 3不支持 3
SHOW RESTORES不支持 3不支持 3
BACKUP LOGS不支持不支持
STOP BACKUP LOGS不支持不支持
PAUSE BACKUP LOGS不支持不支持
RESUME BACKUP LOGS不支持不支持
SHOW BACKUP LOGS STATUS不支持不支持
SHOW BACKUP LOGS METADATA不支持不支持
PURGE BACKUP LOGS不支持不支持
SHOW BR JOB不支持不支持
SHOW BR JOB QUERY不支持不支持
CANCEL BR JOB不支持不支持
SHOW BACKUP META不支持不支持
RECOVER TABLE不支持不支持
ADMIN RESET TELEMETRY_ID支持TiDB Cloud Starter 或 TiDB Cloud Essential 不支持 Telemetry。
ADMIN SHOW TELEMETRY不支持 4不支持 4
ADMIN SHOW SLOW不支持 5不支持 5
ADMIN PLUGINS ENABLE不支持 8不支持 8
ADMIN PLUGINS DISABLE不支持 8不支持 8
ADMIN SET BDR ROLE不支持不支持
ADMIN SHOW BDR ROLE不支持不支持
ADMIN UNSET BDR ROLE不支持不支持
ADMIN REPAIR TABLE不支持不支持
ALTER INSTANCE不支持不支持
ALTER INSTANCE RELOAD TLS不支持TiDB Cloud Starter 和 TiDB Cloud Essential 会自动刷新 TLS 证书。
ALTER TABLE ... ATTRIBUTES不支持不支持
CHANGE DRAINER不支持 7不支持 7
CHANGE PUMP不支持 7不支持 7
FLASHBACK CLUSTER不支持 3不支持 3
IMPORT INTO支持,但会阻止使用本地文件路径或 S3 EXTERNAL_ID 的 IMPORT INTO 语句。不支持
LOAD DATA INFILE阻止从本地文件路径执行 LOAD DATA LOCAL INFILE仅支持 LOAD DATA LOCAL INFILE
LOAD STATS不支持不支持
SELECT ... INTO OUTFILE不支持 4不支持 4
SET CONFIG不支持 4不支持 4
SHOW CONFIG不支持 4不支持 4
SHOW DRAINER STATUS不支持 7不支持 7
SHOW PLUGINS不支持 8不支持 8
SHOW PUMP STATUS不支持 7不支持 7
SHUTDOWN不支持 4不支持 4
PLAN REPLAYER支持支持,但使用不同的文件下载方式 11
time_to_live支持不支持

函数和运算符

Function and operatorTiDB Cloud PremiumTiDB Cloud Starter and TiDB Cloud Essential
SLEEP无限制SLEEP() function 函数支持的最大休眠时间为 300 秒。

系统表

DatabaseTableTiDB Cloud PremiumTiDB Cloud Starter and TiDB Cloud Essential
metrics_schema所有数据库不支持不支持
information_schemaATTRIBUTES支持不支持 1
information_schemaCLUSTER_CONFIG不支持 4不支持 4
information_schemaCLUSTER_HARDWARE不支持 4不支持 4
information_schemaCLUSTER_INFO支持不支持 1
information_schemaCLUSTER_LOAD不支持 4不支持 4
information_schemaCLUSTER_LOG不支持 4不支持 4
information_schemaCLUSTER_SLOW_QUERY不支持 5不支持 5
information_schemaCLUSTER_STATEMENTS_SUMMARY支持不支持 6
information_schemaCLUSTER_STATEMENTS_SUMMARY_EVICTED支持不支持 6
information_schemaCLUSTER_STATEMENTS_SUMMARY_HISTORY支持不支持 6
information_schemaCLUSTER_SYSTEMINFO不支持 4不支持 4
information_schemaINSPECTION_RESULT不支持 4不支持 4
information_schemaINSPECTION_RULES不支持 4不支持 4
information_schemaINSPECTION_SUMMARY不支持 4不支持 4
information_schemaMETRICS_SUMMARY不支持 4不支持 4
information_schemaMETRICS_SUMMARY_BY_LABEL不支持 4不支持 4
information_schemaMETRICS_TABLES不支持 4不支持 4
information_schemaPLACEMENT_POLICIES不支持 1不支持 1
information_schemaRESOURCE_GROUPS不支持 2不支持 2
information_schemaSLOW_QUERY不支持 5不支持 5
information_schemaSTATEMENTS_SUMMARY支持不支持 6
information_schemaSTATEMENTS_SUMMARY_EVICTED支持不支持 6
information_schemaTIDB_HOT_REGIONS不支持 4不支持 4
information_schemaTIDB_HOT_REGIONS_HISTORY支持不支持 1
information_schemaTIDB_SERVERS_INFO支持不支持 1
information_schemaTIKV_REGION_PEERS支持不支持 1
information_schemaTIKV_REGION_STATUS支持不支持 1
information_schemaTIKV_STORE_STATUS支持不支持 1
performance_schemapd_profile_allocs不支持 4不支持 4
performance_schemapd_profile_block不支持 4不支持 4
performance_schemapd_profile_cpu不支持 4不支持 4
performance_schemapd_profile_goroutines不支持 4不支持 4
performance_schemapd_profile_memory不支持 4不支持 4
performance_schemapd_profile_mutex不支持 4不支持 4
performance_schematidb_profile_allocs不支持 4不支持 4
performance_schematidb_profile_block不支持 4不支持 4
performance_schematidb_profile_cpu不支持 4不支持 4
performance_schematidb_profile_goroutines不支持 4不支持 4
performance_schematidb_profile_memory不支持 4不支持 4
performance_schematidb_profile_mutex不支持 4不支持 4
performance_schematikv_profile_cpu不支持 4不支持 4
mysqlexpr_pushdown_blacklist不支持 4不支持 4
mysqlgc_delete_range不支持 4不支持 4
mysqlgc_delete_range_done不支持 4不支持 4
mysqlopt_rule_blacklist不支持 4不支持 4
mysqltidb不支持 4不支持 4

系统变量

VariableTiDB Cloud PremiumTiDB Cloud Starter and TiDB Cloud Essential
hostname值已隐藏值已隐藏
datadir值已隐藏不支持 1
ddl_slow_threshold只读只读
block_encryption_mode只读只读
max_connections只读只读
mpp_version只读只读
interactive_timeout无限制只读 10
max_allowed_packet无限制只读 10
plugin_dir不支持 8不支持 8
plugin_load不支持 8不支持 8
require_secure_transport不支持只读 10
skip_name_resolve只读 10只读 10
sql_log_bin无限制只读 10
tidb_adaptive_closest_read_threshold不支持不支持
tidb_allow_batch_cop只读只读
tidb_allow_mpp只读只读
tidb_analyze_skip_column_types无限制只读 10
tidb_analyze_version只读只读
tidb_backoff_lock_fast只读只读
tidb_backoff_weight只读只读
tidb_batch_commit不支持不支持
tidb_batch_delete不支持不支持
tidb_batch_insert不支持不支持
tidb_capture_plan_baselines只读只读
tidb_cdc_write_source无限制只读 10
tidb_check_mb4_value_in_utf8不支持 4不支持 4
tidb_cloud_storage_uri不支持不支持
tidb_config不支持 4不支持 4
tidb_constraint_check_in_place只读只读
tidb_constraint_check_in_place_pessimistic只读只读
tidb_cost_model_version只读只读
tidb_ddl_disk_quota只读 10只读 10
tidb_ddl_enable_fast_reorg只读 10只读 10
tidb_ddl_error_count_limit无限制只读 10
tidb_ddl_flashback_concurrency只读 10只读 10
tidb_ddl_reorg_batch_size无限制只读 10
tidb_ddl_reorg_max_write_speed不支持不支持
tidb_ddl_reorg_priority无限制只读 10
tidb_ddl_reorg_worker_cnt无限制只读 10
tidb_disable_txn_auto_retry不支持不支持
tidb_dml_batch_size不支持不支持
tidb_dml_type不支持只读 10
tidb_enable_1pc无限制只读 10
tidb_enable_analyze_snapshot只读只读
tidb_enable_async_commit无限制只读 10
tidb_enable_async_merge_global_stats只读只读
tidb_enable_auto_analyze无限制只读 10
tidb_enable_batch_dml不支持不支持
tidb_enable_chunk_rpc只读只读
tidb_enable_collect_execution_info不支持 4不支持 4
tidb_enable_column_tracking不支持不支持
tidb_enable_ddl只读 10只读 10
tidb_enable_dist_task只读只读
tidb_enable_exchange_partition不支持不支持
tidb_enable_extended_stats只读只读
tidb_enable_fast_analyze不支持不支持
tidb_enable_gc_aware_memory_track无限制只读 10
tidb_enable_global_index不支持不支持
tidb_enable_gogc_tuner只读 10只读 10
tidb_enable_historical_stats只读只读
tidb_enable_historical_stats_for_capture只读只读
tidb_enable_legacy_instance_scope只读只读
tidb_enable_list_partition不支持不支持
tidb_enable_local_txn只读 10只读 10
tidb_enable_metadata_lock只读只读
tidb_enable_mutation_checker只读不支持
tidb_enable_new_cost_interface只读只读
tidb_enable_parallel_hashagg_spill只读只读
tidb_enable_pipelined_window_function无限制不支持
tidb_enable_plan_replayer_capture只读只读
tidb_enable_plan_replayer_continuous_capture只读只读
tidb_enable_point_get_cache不支持不支持
tidb_enable_rate_limit_action只读只读
tidb_enable_resource_control只读 10只读 10
tidb_enable_reuse_chunk只读只读
tidb_enable_slow_log不支持 4不支持 4
tidb_enable_stats_owner只读只读
tidb_enable_stmt_summary只读 10只读 10
tidb_enable_table_partition不支持不支持
tidb_enable_telemetry不支持 4不支持 4
tidb_enable_tiflash_read_for_write_stmt不支持不支持
tidb_enable_tmp_storage_on_oom不支持不支持
tidb_enable_top_sql只读 10只读 10
tidb_enable_tso_follower_proxy无限制只读 10
tidb_enable_vectorized_expression只读只读
tidb_evolve_plan_baselines不支持不支持
tidb_evolve_plan_task_end_time不支持不支持
tidb_evolve_plan_task_max_time不支持不支持
tidb_evolve_plan_task_start_time不支持不支持
tidb_expensive_query_time_threshold不支持 4不支持 4
tidb_force_priority不支持 4不支持 4
tidb_gc_concurrency无限制只读 10
tidb_gc_enable无限制只读 10
tidb_gc_leader_desc不支持不支持
tidb_gc_max_wait_time无限制只读 10
tidb_gc_run_interval无限制只读 10
tidb_gc_scan_lock_mode无限制只读 10
tidb_general_log不支持 4不支持 4
tidb_generate_binary_plan只读 10只读 10
tidb_gogc_tuner_threshold无限制只读 10
tidb_guarantee_linearizability只读 10只读 10
tidb_hash_exchange_with_new_collation只读只读
tidb_historical_stats_duration不支持不支持
tidb_isolation_read_engines无限制只读 10
tidb_load_based_replica_read_threshold只读只读
tidb_lock_unchanged_keys只读只读
tidb_log_file_max_days只读 10只读 10
tidb_mem_oom_action只读只读
tidb_mem_quota_analyze只读只读
tidb_memory_debug_mode_alarm_ratio不支持不支持
tidb_memory_debug_mode_min_heap_inuse不支持不支持
tidb_memory_usage_alarm_keep_record_num只读只读
tidb_memory_usage_alarm_ratio不支持 4不支持 4
tidb_merge_join_concurrency不支持不支持
tidb_metric_query_range_duration不支持 4不支持 4
tidb_metric_query_step不支持 4不支持 4
tidb_non_prepared_plan_cache_size不支持不支持
tidb_opt_broadcast_cartesian_join只读只读
tidb_opt_concurrency_factor只读只读
tidb_opt_copcpu_factor只读只读
tidb_opt_write_row_id不支持 4不支持 4
tidb_partition_prune_mode不支持不支持
tidb_pessimistic_txn_fair_locking不支持不支持
tidb_placement_mode无限制只读 10
tidb_pprof_sql_cpu不支持 4不支持 4
tidb_pre_split_regions只读只读
tidb_prepared_plan_cache_size不支持只读
tidb_rc_read_check_ts只读只读
tidb_rc_write_check_ts只读只读
tidb_read_consistency只读只读
tidb_record_plan_in_slow_log不支持 4不支持 4
tidb_redact_log不支持 4不支持 4
tidb_replica_read只读 10只读 10
tidb_request_source_type不支持不支持
tidb_restricted_read_only不支持 4不支持 4
tidb_retry_limit不支持不支持
tidb_row_format_version不支持 4不支持 4
tidb_scatter_region无限制只读 10
tidb_server_memory_limit无限制只读 10
tidb_server_memory_limit_gc_trigger无限制只读 10
tidb_server_memory_limit_sess_min_size无限制只读 10
tidb_service_scope只读只读
tidb_simplified_metrics只读 10只读 10
tidb_skip_missing_partition_stats只读只读
tidb_slow_log_threshold不支持 4不支持 4
tidb_slow_query_file不支持 4不支持 4
tidb_slow_txn_log_threshold不支持 4不支持 4
tidb_stats_load_pseudo_timeout只读只读
tidb_stats_load_sync_wait无限制只读 10
tidb_stmt_summary_enable_persistent只读只读
tidb_stmt_summary_file_max_backups只读只读
tidb_stmt_summary_file_max_days只读只读
tidb_stmt_summary_file_max_size只读只读
tidb_stmt_summary_filename只读只读
tidb_stmt_summary_history_size只读 10只读 10
tidb_stmt_summary_internal_query只读 10只读 10
tidb_stmt_summary_max_sql_length只读 10只读 10
tidb_stmt_summary_max_stmt_count只读 10只读 10
tidb_stmt_summary_refresh_interval只读 10只读 10
tidb_store_limit只读只读
tidb_streamagg_concurrency不支持只读
tidb_sysproc_scan_concurrency无限制只读 10
tidb_top_sql_max_meta_count不支持 4不支持 4
tidb_top_sql_max_time_series_count不支持 4不支持 4
tidb_track_aggregate_memory_usage只读只读
tidb_txn_assertion_level只读只读
tidb_txn_commit_batch_size只读只读
tidb_tso_client_batch_max_wait_time无限制只读 10
tidb_ttl_delete_batch_size无限制只读 10
tidb_ttl_delete_rate_limit无限制只读 10
tidb_ttl_delete_worker_count无限制只读 10
tidb_ttl_job_schedule_window_end_time无限制只读 10
tidb_ttl_job_schedule_window_start_time无限制只读 10
tidb_ttl_running_tasks无限制只读 10
tidb_ttl_scan_batch_size无限制只读 10
tidb_ttl_scan_worker_count无限制只读 10
tidb_txn_mode无限制只读 10
tidb_use_plan_baselines只读只读
tidb_wait_split_region_finish无限制只读 10
tidb_wait_split_region_timeout无限制只读 10
tiflash_compute_dispatch_policy只读只读
tiflash_replica_read不支持不支持
tikv_client_read_timeout不支持不支持
tx_isolation_one_shot不支持不支持
tx_read_ts不支持不支持
txn_scope无限制只读 10
validate_password.enable无限制始终启用 9
validate_password.length无限制至少为 8 9
validate_password.mixed_case_count无限制至少为 1 9
validate_password.number_count无限制至少为 1 9
validate_password.policy无限制只能为 MEDIUMSTRONG 9
validate_password.special_char_count无限制至少为 1 9
wait_timeout无限制只读 10

  1. TiDB Cloud Starter、Essential 和 Premium 不支持配置数据放置。
  2. TiDB Cloud Starter、Essential 和 Premium 不支持配置资源组。
  3. TiDB Cloud Starter 和 TiDB Cloud Essential 不支持像示例中所示那样,通过 ${tidb-server-status-port} 下载 PLAN REPLAYER 导出的文件。相反,TiDB Cloud Starter 和 TiDB Cloud Essential 会生成一个 presigned URL 供你下载文件。请注意,该 URL 在生成后 10 小时内有效。
  4. 该功能在 Security Enhanced Mode (SEM) 中不可用。
  5. TiDB Cloud 不支持 Drainer 和 Pump。
  6. TiDB Cloud Starter、Essential 和 Premium 不支持插件。
  7. 要在 TiDB Cloud Starter、Essential 或 Premium 上执行备份与恢复操作,可以改用 TiDB Cloud 控制台。
  8. 要在 TiDB Cloud Starter、Essential 或 Premium 上跟踪慢查询,可以改用 TiDB Cloud 控制台。
  9. 要在 TiDB Cloud Starter 或 TiDB Cloud Essential 上执行语句分析,可以改用 TiDB Cloud 控制台。
  10. 该变量在 TiDB Cloud Starter 和 TiDB Cloud Essential 上为只读。
  11. TiDB Cloud Starter 和 TiDB Cloud Essential 强制执行强密码策略。

文档内容是否有帮助?