支持的数据库标志

选择文档版本:

AlloyDB Omni 支持标准 PostgreSQL 版本提供的所有数据库标志。本页面列出了除标准数据库标志之外,AlloyDB Omni 提供的数据库标志。

您可以将数据库标志用于许多操作,包括调整 PostgreSQL 参数、调整选项以及对实例进行配置和调优。

如需详细了解如何在 AlloyDB Omni 中设置数据库标志,请参阅配置 AlloyDB Omni 数据库标志。

AlloyDB Omni 标志

该表的其他列包含有关每个 AlloyDB Omni 标志的其他信息:

  • 点击某个标志名称即可查看其使用说明。

  • 默认值列会显示 AlloyDB Omni 在新实例中为此标志设置的值(除非您在创建实例时指定了其他值)。

    标准默认值指示相应标志具有默认值,但该默认值并非由 AlloyDB Omni 设置。如需了解详情,请点击相应标志的名称。

  • 在是否需要重启列中,是指示在实例上设置、移除或修改标志时,您需要重启 AlloyDB Omni。除非您再次修改,否则标志值会在实例中一直保留。

  • 在副本限制列中,是指示对相应标志的使用方式有以下限制:

    • 在集群的主实例上设置此标志之前,需要先在集群的每个副本实例上设置此标志。

    • 如果主实例设置了此标志,则任何副本实例的此标志值必须等于或大于主实例的此标志值。

AlloyDB Omni 标志 默认值 需要重启 副本限制
alloydb.ai_nl_enabled off 否 否
alloydb.audit_log_line_prefix %m [%p]: [%l-1] db=%d,user=%u 是 否
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 一个空白字符串 否 否
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 是