平凯数据库云服务上受限的 SQL 功能
平凯数据库云服务支持几乎所有 TiDB 支持的工作负载,但 TiDB 自建版与平凯数据库云服务之间存在一些功能差异。本文档描述了平凯数据库云服务上 SQL 功能的限制。我们正在不断弥补 TiDB 自建版与平凯数据库云服务之间的功能差距。如果你需要这些尚未支持的功能或能力,请联系我们提交功能请求。
语句
数据放置与范围管理
| 语句 | 平凯云 Starter 和平凯云 Essential |
|---|---|
ALTER PLACEMENT POLICY | 不支持 1 |
CREATE PLACEMENT POLICY | 不支持 1 |
DROP PLACEMENT POLICY | 不支持 1 |
SHOW CREATE PLACEMENT POLICY | 不支持 1 |
SHOW PLACEMENT | 不支持 1 |
SHOW PLACEMENT FOR | 不支持 1 |
SHOW PLACEMENT LABELS | 不支持 1 |
SHOW TABLE REGIONS | 不支持 1 |
SPLIT REGION | 不支持 1 |
资源组
| 语句 | 平凯云 Starter 和平凯云 Essential |
|---|---|
ALTER RESOURCE GROUP | 不支持 2 |
CALIBRATE RESOURCE | 不支持 2 |
CREATE RESOURCE GROUP | 不支持 2 |
DROP RESOURCE GROUP | 不支持 2 |
SET RESOURCE GROUP | 不支持 2 |
SHOW CREATE RESOURCE GROUP | 不支持 2 |
其他
| 语句 | 平凯云 Starter 和平凯云 Essential |
|---|---|
BACKUP | 不支持 3 |
SHOW BACKUPS | 不支持 3 |
RESTORE | 不支持 3 |
SHOW RESTORES | 不支持 3 |
ADMIN RESET TELEMETRY_ID | 不支持 Telemetry。 |
ADMIN SHOW TELEMETRY | 不支持 4 |
ADMIN SHOW SLOW | 不支持 5 |
ADMIN PLUGINS ENABLE | 不支持 6 |
ADMIN PLUGINS DISABLE | 不支持 6 |
ALTER INSTANCE RELOAD TLS | 会自动刷新 TLS 证书。 |
LOAD DATA INFILE | 仅支持 LOAD DATA LOCAL INFILE |
CHANGE DRAINER | 不支持 7 |
CHANGE PUMP | 不支持 7 |
FLASHBACK CLUSTER | 不支持 3 |
LOAD STATS | 不支持 |
SELECT ... INTO OUTFILE | 不支持 4 |
SET CONFIG | 不支持 4 |
SHOW CONFIG | 不支持 4 |
SHOW DRAINER STATUS | 不支持 7 |
SHOW PLUGINS | 不支持 6 |
SHOW PUMP STATUS | 不支持 7 |
SHUTDOWN | 不支持 4 |
PLAN REPLAYER | 以不同方式支持 8 |
函数与运算符
| 函数与运算符 | 平凯云 Starter 和平凯云 Essential |
|---|---|
SLEEP | SLEEP() 函数 有限制,最大支持 300 秒的休眠时间。 |
系统表
| 数据库 | 表 | 平凯云 Starter 和平凯云 Essential |
|---|---|---|
information_schema | ATTRIBUTES | 不支持 1 |
information_schema | CLUSTER_CONFIG | 不支持 4 |
information_schema | CLUSTER_HARDWARE | 不支持 4 |
information_schema | CLUSTER_INFO | 不支持 1 |
information_schema | CLUSTER_LOAD | 不支持 4 |
information_schema | CLUSTER_LOG | 不支持 4 |
information_schema | CLUSTER_SLOW_QUERY | 不支持 5 |
information_schema | CLUSTER_STATEMENTS_SUMMARY | 不支持 9 |
information_schema | CLUSTER_STATEMENTS_SUMMARY_EVICTED | 不支持 9 |
information_schema | CLUSTER_STATEMENTS_SUMMARY_HISTORY | 不支持 9 |
information_schema | CLUSTER_SYSTEMINFO | 不支持 4 |
information_schema | INSPECTION_RESULT | 不支持 4 |
information_schema | INSPECTION_RULES | 不支持 4 |
information_schema | INSPECTION_SUMMARY | 不支持 4 |
information_schema | METRICS_SUMMARY | 不支持 4 |
information_schema | METRICS_SUMMARY_BY_LABEL | 不支持 4 |
information_schema | METRICS_TABLES | 不支持 4 |
information_schema | PLACEMENT_POLICIES | 不支持 1 |
information_schema | RESOURCE_GROUPS | 不支持 2 |
information_schema | SLOW_QUERY | 不支持 5 |
information_schema | STATEMENTS_SUMMARY | 不支持 9 |
information_schema | STATEMENTS_SUMMARY_EVICTED | 不支持 9 |
information_schema | TIDB_HOT_REGIONS | 不支持 4 |
information_schema | TIDB_HOT_REGIONS_HISTORY | 不支持 1 |
information_schema | TIDB_SERVERS_INFO | 不支持 1 |
information_schema | TIKV_REGION_PEERS | 不支持 1 |
information_schema | TIKV_REGION_STATUS | 不支持 1 |
information_schema | TIKV_STORE_STATUS | 不支持 1 |
performance_schema | pd_profile_allocs | 不支持 4 |
performance_schema | pd_profile_block | 不支持 4 |
performance_schema | pd_profile_cpu | 不支持 4 |
performance_schema | pd_profile_goroutines | 不支持 4 |
performance_schema | pd_profile_memory | 不支持 4 |
performance_schema | pd_profile_mutex | 不支持 4 |
performance_schema | tidb_profile_allocs | 不支持 4 |
performance_schema | tidb_profile_block | 不支持 4 |
performance_schema | tidb_profile_cpu | 不支持 4 |
performance_schema | tidb_profile_goroutines | 不支持 4 |
performance_schema | tidb_profile_memory | 不支持 4 |
performance_schema | tidb_profile_mutex | 不支持 4 |
performance_schema | tikv_profile_cpu | 不支持 4 |
mysql | expr_pushdown_blacklist | 不支持 4 |
mysql | gc_delete_range | 不支持 4 |
mysql | gc_delete_range_done | 不支持 4 |
mysql | opt_rule_blacklist | 不支持 4 |
mysql | tidb | 不支持 4 |
系统变量
| 变量 | 平凯云 Starter 和平凯云 Essential |
|---|---|
datadir | 不支持 1 |
interactive_timeout | 只读 10 |
max_allowed_packet | 只读 10 |
plugin_dir | 不支持 6 |
plugin_load | 不支持 6 |
require_secure_transport | 只读 10 |
skip_name_resolve | 只读 10 |
sql_log_bin | 只读 10 |
tidb_analyze_skip_column_types | 只读 10 |
tidb_cdc_write_source | 只读 10 |
tidb_check_mb4_value_in_utf8 | 不支持 4 |
tidb_config | 不支持 4 |
tidb_ddl_disk_quota | 只读 10 |
tidb_ddl_enable_fast_reorg | 只读 10 |
tidb_ddl_error_count_limit | 只读 10 |
tidb_ddl_flashback_concurrency | 只读 10 |
tidb_ddl_reorg_batch_size | 只读 10 |
tidb_ddl_reorg_priority | 只读 10 |
tidb_ddl_reorg_worker_cnt | 只读 10 |
tidb_dml_type | 只读 10 |
tidb_enable_1pc | 只读 10 |
tidb_enable_async_commit | 只读 10 |
tidb_enable_auto_analyze | 只读 10 |
tidb_enable_collect_execution_info | 不支持 4 |
tidb_enable_ddl | 只读 10 |
tidb_enable_gc_aware_memory_track | 只读 10 |
tidb_enable_gogc_tuner | 只读 10 |
tidb_enable_local_txn | 只读 10 |
tidb_enable_resource_control | 只读 10 |
tidb_enable_slow_log | 不支持 4 |
tidb_enable_stmt_summary | 只读 10 |
tidb_enable_telemetry | 不支持 4 |
tidb_enable_top_sql | 只读 10 |
tidb_enable_tso_follower_proxy | 只读 10 |
tidb_expensive_query_time_threshold | 不支持 4 |
tidb_force_priority | 不支持 4 |
tidb_gc_concurrency | 只读 10 |
tidb_gc_enable | 只读 10 |
tidb_gc_max_wait_time | 只读 10 |
tidb_gc_run_interval | 只读 10 |
tidb_gc_scan_lock_mode | 只读 10 |
tidb_general_log | 不支持 4 |
tidb_generate_binary_plan | 只读 10 |
tidb_gogc_tuner_threshold | 只读 10 |
tidb_guarantee_linearizability | 只读 10 |
tidb_isolation_read_engines | 只读 10 |
tidb_log_file_max_days | 只读 10 |
tidb_memory_usage_alarm_ratio | 不支持 4 |
tidb_metric_query_range_duration | 不支持 4 |
tidb_metric_query_step | 不支持 4 |
tidb_opt_write_row_id | 不支持 4 |
tidb_placement_mode | 只读 10 |
tidb_pprof_sql_cpu | 不支持 4 |
tidb_record_plan_in_slow_log | 不支持 4 |
tidb_redact_log | 不支持 4 |
tidb_replica_read | 只读 10 |
tidb_restricted_read_only | 不支持 4 |
tidb_row_format_version | 不支持 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_simplified_metrics | 只读 10 |
tidb_slow_query_file | 不支持 4 |
tidb_slow_log_threshold | 不支持 4 |
tidb_slow_txn_log_threshold | 不支持 4 |
tidb_stats_load_sync_wait | 只读 10 |
tidb_stmt_summary_history_size | 只读 10 |
tidb_stmt_summary_internal_query | 只读 10 |
tidb_stmt_summary_max_sql_length | 只读 10 |
tidb_stmt_summary_max_stmt_count | 只读 10 |
tidb_stmt_summary_refresh_interval | 只读 10 |
tidb_sysproc_scan_concurrency | 只读 10 |
tidb_top_sql_max_meta_count | 不支持 4 |
tidb_top_sql_max_time_series_count | 不支持 4 |
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_wait_split_region_finish | 只读 10 |
tidb_wait_split_region_timeout | 只读 10 |
txn_scope | 只读 10 |
validate_password.enable | 始终启用 11 |
validate_password.length | 至少为 8 11 |
validate_password.mixed_case_count | 至少为 1 11 |
validate_password.number_count | 至少为 1 11 |
validate_password.policy | 只能为 MEDIUM 或 STRONG 11 |
validate_password.special_char_count | 至少为 1 11 |
wait_timeout | 只读 10 |
Footnotes
-
平凯云 Starter 和平凯云 Essential 不支持配置数据放置。 ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18
-
在平凯云 Starter 或平凯云 Essential 上进行 备份与恢复 操作时,可以使用平凯数据库云服务控制台代替。 ↩ ↩2 ↩3 ↩4 ↩5
-
该功能在 安全增强模式(SEM) 下不可用。 ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19 ↩20 ↩21 ↩22 ↩23 ↩24 ↩25 ↩26 ↩27 ↩28 ↩29 ↩30 ↩31 ↩32 ↩33 ↩34 ↩35 ↩36 ↩37 ↩38 ↩39 ↩40 ↩41 ↩42 ↩43 ↩44 ↩45 ↩46 ↩47 ↩48 ↩49 ↩50 ↩51 ↩52 ↩53 ↩54 ↩55 ↩56 ↩57
-
在平凯云 Starter 或平凯云 Essential 上追踪 慢查询 时,可以使用平凯数据库云服务控制台代替。 ↩ ↩2 ↩3
-
平凯云 Starter 和平凯云 Essential 不支持像示例中那样通过
${tidb-server-status-port}下载PLAN REPLAYER导出的文件。取而代之,平凯云 Starter 和平凯云 Essential 会为你生成一个 presigned URL 用于下载文件。注意该 URL 在生成后 10 小时内有效。 ↩ -
在平凯云 Starter 或平凯云 Essential 上进行 语句分析 时,可以使用平凯数据库云服务控制台代替。 ↩ ↩2 ↩3 ↩4 ↩5
-
该变量在平凯云 Starter 和平凯云 Essential 上为只读。 ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19 ↩20 ↩21 ↩22 ↩23 ↩24 ↩25 ↩26 ↩27 ↩28 ↩29 ↩30 ↩31 ↩32 ↩33 ↩34 ↩35 ↩36 ↩37 ↩38 ↩39 ↩40 ↩41 ↩42 ↩43 ↩44 ↩45 ↩46 ↩47 ↩48 ↩49 ↩50 ↩51 ↩52 ↩53 ↩54 ↩55 ↩56 ↩57 ↩58 ↩59 ↩60 ↩61 ↩62 ↩63 ↩64