支援的資料庫旗標

選取文件版本:

AlloyDB Omni 支援標準 PostgreSQL 版本提供的所有資料庫旗標。本頁面列出 AlloyDB Omni 提供的資料庫標記,以及標準資料庫標記。

您可以使用資料庫標記執行許多作業,包括調整 PostgreSQL 參數、調整選項,以及設定和調整執行個體。

如要進一步瞭解如何在 AlloyDB Omni 中設定資料庫旗標,請參閱「設定 AlloyDB Omni 資料庫旗標」。

AlloyDB Omni 旗標

表格的其他資料欄則包含各個 AlloyDB Omni 旗標的額外資訊:

  • 按一下旗標名稱,即可查看使用說明。

  • 「預設值」欄會顯示 AlloyDB Omni 在新執行個體中為這個標記設定的值,除非您在建立執行個體時指定了不同的值。

    標準預設值:表示標記具有預設值,但並非由 AlloyDB Omni 設定。如要瞭解詳情,請按一下旗標名稱。

  • 在「Restart required」(需要重新啟動) 欄中,如果顯示「Yes」(是) ,表示您在執行個體上設定、移除或修改標記時,需要重新啟動 AlloyDB Omni。除非再次修改,否則系統會保留執行個體的旗標值。

  • 在「副本限制」欄中,「是」表示使用旗標時有下列限制:

    • 在叢集的主要執行個體上設定這個旗標之前,請先在叢集的每個副本執行個體上設定旗標。

    • 如果主要執行個體已設定這個旗標,任何副本執行個體上這個旗標的值都必須大於或等於主要執行個體的值。

AlloyDB Omni 旗標 預設值 需要重新啟動 副本限制
alloydb.ai_nl_enabled off 否 否
alloydb.audit_log_line_prefix %m [%p]: [%l-1] db=%d,user=%u 是 否
alloydb.enable_pg_hint_plan off 是 否
alloydb.enable_pgaudit off 是 否
alloydb.enable_named_hints off 否 否
alloydb.iam_authentication off 是 否
alloydb.logical_decoding off 是 否
alloydb.log_throttling_window 否 否
alloydb.promote_cancel_to_terminate off 否 否
alloydb.pg_shadow_select_role 空字串 否 否
alloydb.enable_pg_squeeze off 否 否
enable_google_adaptive_autovacuum on 否 否
enable_parallel_nestloop_inner_material off 否 否
google_columnar_engine.auto_columnarization_schedule 'EVERY 1 HOUR' 否 否
google_columnar_engine.enable_auto_columnarization on 否 否
google_columnar_engine.enable_columnar_scan on 否 否
google_columnar_engine.enable_virtual_columns_scan off 否 否
google_columnar_engine.enable_vectorized_join off 否 否
google_columnar_engine.enabled off 是 否
google_columnar_engine.memory_size_in_mb 執行個體 RAM 的 30% 是 否
google_columnar_engine.omni_storage_cache_directory 空字串 是 否
google_columnar_engine.refresh_threshold_percentage 50 否 否
google_columnar_engine.refresh_threshold_scan_count 5 否 否
google_columnar_engine.relations 空字串 否 否
google_columnar_engine.vectorized_join_threads 1 否 否
google_db_advisor.auto_advisor_max_time_in_seconds 1800 否 否
google_db_advisor.auto_advisor_schedule 'EVERY 24 HOURS' 否 否
google_db_advisor.enable_auto_advisor on 否 否
google_db_advisor.enabled on 是 否
google_db_advisor.max_index_width 2 否 否
google_db_advisor.max_num_indexable_columns 1000 否 否
google_db_advisor.max_statement_length 102400 否 否
google_db_advisor.max_storage_size_in_mb 0 否 否
google_db_advisor.recommendation_max_time_in_seconds 600 否 否
google_db_advisor.recommend_indexes_on_partitions off 否 否
google_db_advisor.top_k_slowest_statements 100 否 否
google_job_scheduler.maintenance_cpu_percentage 20 否 否
google_job_scheduler.max_parallel_workers_per_job 2 否 否
google_ml_integration.cursor_group_size 500 否 否
google_ml_integration.default_llm_model gemini-2.5-flash-lite 否 否
google_ml_integration.embedding_request_timeout 300 否 否
google_ml_integration.enable_ai_query_engine on 否 否
google_ml_integration.enable_faster_embedding_generation on 否 否
google_ml_integration.enable_forecasting on 否 否
google_ml_integration.enable_list_models off 否 否
google_ml_integration.enable_model_support off 否
google_ml_integration.enable_preview_ai_functions off 否 否
google_ml_integration.max_memory_usage_mb 1024 否 否
google_ml_integration.max_parallel_requests 400 否 否
google_ml_integration.request_timeout_in_seconds 60 否 否
google_storage.log_replay_throttle_read_transactions on 否 否
scann.enable_index_with_insufficient_data 已停用 否 否
scann.enable_preview_features 已停用 是 否
scann.maintenance_background_naptime_s 1 分鐘 是 否
password.enforce_password_does_not_contain_username OFF 否 否
password.enforce_expiration OFF 否 否
password.enforce_complexity OFF 否 否
password.expiration_in_days 90 否 否
password.min_uppercase_letters 0 否 否
password.max_uppercase_letters 1000 否 否
password.min_lowercase_letters 0 否 否
password.max_lowercase_letters 1000 否 否
password.min_numerical_chars 0 否 否
password.max_numerical_chars 1000 否 否
password.min_special_chars 0 否 否
password.max_special_chars 1000 否 否
password.min_pass_length 0 否 否
password.max_pass_length 1000 否 否
password.notify_expiration_in_days 30 否 否
squeeze.worker_autostart 標準預設 否 否
squeeze.worker_role 標準預設 否 否
squeeze.workers_per_database 預設值為 1 否 否
squeeze.max_xlock_time 預設值為 1。設為介於 1 和 2147483647 之間的任何值 否 否
tde_kek_url 空字串 否 否

標準 PostgreSQL 標記

AlloyDB Omni 支援下列標準 PostgreSQL 旗標。在執行個體上設定、移除或修改部分旗標時,需要重新啟動 AlloyDB Omni。除非再次修改,否則系統會保留執行個體的旗標值。

PostgreSQL 旗標名稱 需要重新啟動
autovacuum_freeze_max_age 是
autovacuum_max_workers 是
autovacuum_multixact_freeze_max_age 是
autovacuum_vacuum_max_threshold 否
commit_timestamp_buffers 是
cron.database_name 是
cron.log_run 是
cron.log_statement 是
cron.max_running_jobs 是
max_connections 是
max_locks_per_transaction 是
max_logical_replication_workers 是
max_notify_queue_pages 是
max_pred_locks_per_page 是
max_pred_locks_per_relation 是
max_pred_locks_per_transaction 是
max_prepared_transactions 是
max_replication_slots 是
max_wal_senders 是
max_worker_processes 是
old_snapshot_threshold 是
multixact_member_buffers 是
multixact_offset_buffers 是
notify_buffers 是
pg_stat_statements.max 是
pglogical.batch_inserts 是
pglogical.synchronous_commit 是
pglogical.use_spi 是
shared_buffers 是
serializable_buffers 是
subtransaction_buffers 是
track_activity_query_size 是
track_commit_timestamp 是
transaction_buffers 是
wal_buffers 是