支持的数据库标志

选择文档版本:

本页面列出了 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 Omni 标志 默认值 需要重启 副本限制
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,其中 N 是 4 或实例 vCPU 的数量(以较大者为准) 否 否