支持的数据库标志

本页面列出了 AlloyDB Omni 支持的数据库标志。

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

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

如需详细了解如何使用下表中列出的每个标志,请点击相应标志的名称。

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

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

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

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

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

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

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

A | C | D | E | F | G | H | I | J | L | M | O | P | R | S | T | V | W

AlloyDB 标志 默认值 是否需要重启 副本限制
alloydb.enable_pgaudit off
alloydb.log_throttling_window
alloydb.promote_cancel_to_terminate off
alloydb.pg_shadow_select_role 一个空白字符串
auto_explain.log_analyze 标准默认值
auto_explain.log_buffers 标准默认值
auto_explain.log_format 标准默认值
auto_explain.log_level 标准默认值
auto_explain.log_min_duration 标准默认值
auto_explain.log_nested_statements 标准默认值
auto_explain.log_settings 标准默认值
auto_explain.log_timing 标准默认值
auto_explain.log_triggers 标准默认值
auto_explain.log_verbose 标准默认值
auto_explain.log_wal 标准默认值
auto_explain.sample_rate 标准默认值
autovacuum 标准默认值
autovacuum_analyze_scale_factor 标准默认值
autovacuum_analyze_threshold 标准默认值
autovacuum_freeze_max_age 标准默认值
autovacuum_max_workers 标准默认值
autovacuum_multixact_freeze_max_age 标准默认值
autovacuum_naptime 标准默认值
autovacuum_vacuum_cost_delay 标准默认值
autovacuum_vacuum_cost_limit 标准默认值
autovacuum_vacuum_scale_factor 标准默认值
autovacuum_vacuum_threshold 标准默认值
autovacuum_work_mem 标准默认值
checkpoint_completion_target 标准默认值
checkpoint_timeout 标准默认值
checkpoint_warning 标准默认值
commit_delay 标准默认值
commit_siblings 标准默认值
constraint_exclusion 标准默认值
cpu_index_tuple_cost 标准默认值
cpu_operator_cost 标准默认值
cpu_tuple_cost 标准默认值
cron.database_name 标准默认值
cron.log_min_messages 标准默认值
cron.log_run 标准默认值
cron.log_statement 标准默认值
cron.max_running_jobs 标准默认值
cursor_tuple_fraction 标准默认值
deadlock_timeout 标准默认值
default_statistics_target 标准默认值
default_tablespace 标准默认值
default_transaction_deferrable 标准默认值
default_transaction_isolation 标准默认值
effective_cache_size 实例 RAM 的 80%
enable_bitmapscan 标准默认值
enable_google_adaptive_autovacuum on
enable_hashagg 标准默认值
enable_hashjoin 标准默认值
enable_indexonlyscan 标准默认值
enable_indexscan 标准默认值
enable_material 标准默认值
enable_mergejoin 标准默认值
enable_nestloop 标准默认值
enable_seqscan 标准默认值
enable_sort 标准默认值
enable_tidscan 标准默认值
force_parallel_mode 标准默认值
from_collapse_limit 标准默认值
geqo 标准默认值
geqo_effort 标准默认值
geqo_generations 标准默认值
geqo_pool_size 标准默认值
geqo_seed 标准默认值
geqo_selection_bias 标准默认值
geqo_threshold 标准默认值
gin_fuzzy_search_limit 标准默认值
gin_pending_list_limit 标准默认值
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.enabled off
google_columnar_engine.memory_size_in_mb 实例 RAM 的 30%
google_columnar_engine.refresh_threshold_percentage 50
google_columnar_engine.refresh_threshold_scan_count 5
google_columnar_engine.relations 一个空白字符串
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.enable_model_support off
google_storage.log_replay_throttle_read_transactions on
hot_standby_feedback on
idle_session_timeout 标准默认值
join_collapse_limit 标准默认值
lock_timeout 标准默认值
log_autovacuum_min_duration 0
log_checkpoints 标准默认值
log_connections 标准默认值
log_disconnections 标准默认值
log_duration 标准默认值
log_error_verbosity 标准默认值
log_executor_stats 标准默认值
log_hostname 标准默认值
log_line_prefix 标准默认值
log_lock_waits 标准默认值
log_min_duration_statement 标准默认值
log_min_error_statement 标准默认值
log_min_messages 标准默认值
log_parser_stats 标准默认值
log_planner_stats 标准默认值
log_replication_commands 标准默认值
log_statement 标准默认值
log_statement_stats 标准默认值
log_temp_files 0
maintenance_work_mem 标准默认值
max_connections 1000
max_locks_per_transaction 标准默认值
max_logical_replication_workers 标准默认值
max_parallel_maintenance_workers 标准默认值
max_parallel_workers 实例 CPU 数量或 8(以较大者为准)
max_parallel_workers_per_gather 实例 CPU 数量的一半或 2(以较大者为准)
max_pred_locks_per_page 标准默认值
max_pred_locks_per_relation 标准默认值
max_pred_locks_per_transaction 标准默认值
max_prepared_transactions 标准默认值
max_replication_slots 60
max_standby_archive_delay 标准默认值
max_standby_streaming_delay 标准默认值
max_sync_workers_per_subscription 标准默认值
max_wal_senders 50
max_wal_size 1504
max_worker_processes 64
min_wal_size 标准默认值
old_snapshot_threshold 标准默认值
parallel_setup_cost 标准默认值
parallel_tuple_cost 标准默认值
password_encryption 标准默认值
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
pg_bigm.enable_recheck 标准默认值
pg_bigm.gin_key_limit 标准默认值
pg_bigm.similarity_limit 标准默认值
pg_hint_plan.debug_print 标准默认值
pg_hint_plan.enable_hint 标准默认值
pg_hint_plan.enable_hint_table 标准默认值
pg_hint_plan.message_level 标准默认值
pg_hint_plan.parse_messages 标准默认值
pg_stat_statements.max 标准默认值
pg_stat_statements.save 标准默认值
pg_stat_statements.track 标准默认值
pg_stat_statements.track_utility 标准默认值
pgaudit.log 标准默认值
pgaudit.log_catalog 标准默认值
pgaudit.log_client 标准默认值
pgaudit.log_level 标准默认值
pgaudit.log_parameter 标准默认值
pgaudit.log_relation 标准默认值
pgaudit.log_statement_once 标准默认值
pgaudit.role 标准默认值
pglogical.batch_inserts 标准默认值
pglogical.conflict_log_level 标准默认值
pglogical.conflict_resolution 标准默认值
pglogical.extra_connection_options 标准默认值
pglogical.synchronous_commit 标准默认值
pglogical.use_spi 标准默认值
random_page_cost 标准默认值
shared_buffers 实例内存的 80%
ssl_max_protocol_version 标准默认值
ssl_min_protocol_version 标准默认值
standard_conforming_strings 标准默认值
statement_timeout 标准默认值
synchronize_seqscans 标准默认值
tcp_keepalives_count 5
tcp_keepalives_idle 300
tcp_keepalives_interval 60
temp_buffers 标准默认值
temp_file_limit 标准默认值
trace_notify 标准默认值
trace_recovery_messages 标准默认值
trace_sort 标准默认值
track_activities 标准默认值
track_activity_query_size 标准默认值
track_commit_timestamp 标准默认值
track_counts 标准默认值
track_functions 标准默认值
track_io_timing on
vacuum_cost_delay 标准默认值
vacuum_cost_limit 标准默认值
vacuum_freeze_min_age 标准默认值
vacuum_freeze_table_age 标准默认值
vacuum_multixact_freeze_min_age 标准默认值
vacuum_multixact_freeze_table_age 标准默认值
wal_buffers 2048
wal_receiver_timeout Standard default
wal_sender_timeout Standard default
work_mem N MB,其中 N4 或实例 vCPU 数量(以较大者为准)