引擎参数说明

引擎参数说明

参数名称 默认值 重启 修改范围
archive_mode on [always|on|off]
autovacuum_vacuum_cost_delay 0 [-1-100]
autovacuum_vacuum_cost_limit 10000 [-1-10000]
auto_explain.log_analyze off [on|off]
auto_explain.log_buffers off [on|off]
auto_explain.log_format text [text|xml|json|yaml]
auto_explain.log_min_duration 5000 [-1-2147483647]
auto_explain.
log_nested_statements
off [on|off]
auto_explain.log_timing on [on|off]
auto_explain.log_triggers off [on|off]
auto_explain.log_verbose off [on|off]
auto_explain.sample_rate 1 [0-1]
checkpoint_completion_target 0.9 [0-1]
checkpoint_timeout 300 [1-86400]
default_transaction_deferrable off [on|off]
default_with_oids off [on|off]
default_with_rowids off [on|off]
enable_partitionwise_aggregate on [on|off]
enable_partitionwise_join on [on|off]
extra_float_digits 0 [-15-3]
idlein_transaction
session_timeout
3600000 ^(0|[1-9]\d{3,8}|1\d{9}|2000000000)$
jit off [on|off]
lock_timeout 0 ^(0|[1-9]\d{3,8}|1\d{9}|2000000000)$
log_min_duration_statement -1 [-1-2147483647]
log_statement all [none|ddl|mod|all]
log_temp_files 100000 [-1-2147483647]
log_timezone 'PRC' ^'(((UTC)(-){0,1}(\d|[1-9]\d|1([0-5]\d|6
[0-7])))|((GMT)(-){0,1}(\d|[1-9]\d|1([0-5]
\d|6[0-7])))|CST6CDT|Poland|Kwajalein|
MST|NZ|Universal|Libya|Turkey|
EST5EDT|Greenwich|NZ-CHAT|MET|
Portugal|GMT-0|CET|Eire|PST8PDT|
Jamaica|GMT|Zulu|Japan|ROC|GB-Eire|
ROK|Navajo|Singapore|posixrules|GB|
EST|GMT0|Hongkong|PRC|Iran|
MST7MDT|WET|W-SU|UCT|Cuba|Egypt|
EET|Israel|UTC|HST|Iceland)'$
maxparallel
maintenance_workers
2 [0-1024]
max_parallel_workers 2 [0-512]
max_parallel_workers_per_gather 2 [0-512]
min_parallel_index_scan_size 64 [0-715827882]
min_parallel_table_scan_size 1024 [0-715827882]
old_snapshot_threshold -1 [-1-86400]
polar_comp_dynatune 0 [0-100]
polar_comp_dynatune_profile oltp [oltp|reporting|mixed]
polar_comp_enable_pruning on [on|off]
polar_comp_redwood_date on [on|off]
polarcomp
redwood_greatest_least
on [on|off]
polarcomp
redwood_raw_names
on [on|off]
polar_comp_redwood_strings on [on|off]
polar_comp_stmt_level_tx on [on|off]
dbms_job.database_name 'postgres' ^'\w+'$
statement_timeout 0 ^(0|[1-9]\d{3,8}|1\d{9}|2000000000)$
temp_file_limit 524288000 [-1-1048576000]
timezone 'PRC' ^'(((UTC)(-){0,1}(\d|[1-9]\d|1([0-5]\d|6
[0-7])))|((GMT)(-){0,1}(\d|[1-9]\d|1([0-5]\d|
6[0-7])))|CST6CDT|Poland|Kwajalein|
MST|NZ|Universal|Libya|Turkey|
EST5EDT|Greenwich|NZ-CHAT|MET|
Portugal|GMT-0|CET|Eire|PST8PDT|
Jamaica|GMT|Zulu|Japan|ROC|GB-Eire|
ROK|Navajo|Singapore|posixrules|GB|
EST|GMT0|Hongkong|PRC|Iran|
MST7MDT|WET|W-SU|UCT|Cuba|Egypt|
EET|Israel|UTC|HST|Iceland)'$
track_commit_timestamp off [on|off]
vacuum_defer_cleanup_age 0 [0-1000000]
wal_level logical [replica|logical]
work_mem 4096 [4096-524288]
polarempty
string_is_null_enable
on [on|off]
polarenable_varchar2
length_with_byte
on [on|off]
polar_enable_base64_decode on [on|off]
polar_enable_nls_date_format on [on|off]
polar_enable_rowid on [on|off]
postgres_fdw.
polar_connection_check
off [on|off]
polar_comp_custom_plan_tries 5 [-1-100]
dblink.polar_auto_port_mapping off [on|off]
dblink.polar_connection_check off [on|off]
pg_stat_statements.
enable_superuser_track
on [on|off]
cron.polar_allow_superuser_task on [on|off]
polar_stat_sql.
enable_qps_monitor
on [on|off]
polarenable_audit
log_bind_sql_parameter
off [on|off]
polarenable_audit_log
bind_sql_parameter_new
off [on|off]
polarenable_replica
use_smgr_cache
on [off|on]
idle_session_timeout 0 [0-2147483647]
polar_resource_group.
total_mem_limit_rate
95 [50-100]
polar_resource_group.
total_mem_limit_remain_size
524288 [131072-2097151]

注意:以下参数为高危参数,请确认影响后谨慎修改

参数名称 默认值 重启 修改范围
autovacuum_max_workers 5 [1-262143]
autovacuum_work_mem 200MB [-1-2147483647]
enable_hashagg off [on|off]
log_connections off [on|off]
log_disconnections off [on|off]
max_standby_streaming_delay 30000 [-1-2147483647]
polar_bgwriter_batch_size_flushlist 100 [1-10000]
polar_bgwriter_max_batch_size 5000 [0-1073741823]
polar_bgwriter_sleep_lsn_lag 100 [0-1000]
polar_buffer_copy_lsn_lag_with_cons_lsn 100 [1-1000]
polar_buffer_copy_min_modified_count 5 [0-100]
polar_bulk_extend_size 512 [0-1073741823]
polar_check_checkpoint_legal_interval 10 [1-3600]
polar_clog_slot_size 512 [128-8192]
polar_comp_early_lock_release off [on|off]
polar_copy_buffers 16384 [128-1073741823]
polar_enable_connectby_multiexpr on [on|off]
polarenable_physical
repl_non_super_wal_snd
off [on|off]
polar_enable_show_polar_comp_version on [on|off]
polar_enable_syslog_pipe_buffer off [on|off]
polar_global_temp_table_debug off [on|off]
polar_max_log_files 20 [-1-2147483647]
polar_max_super_conns 100 [-1-262143]
polar_num_active_global_temp_table 1000 [0-1000000]
polar_parallel_bgwriter_check_interval 10 [1-600]
polar_parallel_bgwriter_delay 10 [1-10000]
polar_parallel_bgwriter_workers 5 [0-8]
polarparallel_new
bgwriter_threshold_time
10 [1-3600]
polar_read_ahead_xlog_num 200 [0-200]
polar_redo_hashtable_size 131072 [16-1073741823]
polar_ring_buffer_vacuum 128 [10-1000]
polar_spl_savepoint_enable on [on|off]
polartemp_relation
file_in_shared_storage
off [on|off]
polar_vfs.libmm_num_partition 32 [4-128]
polar_vfs.libmm_size 67108864 [67108864-1073741824]
polar_enable_fullpage_snapshot off [on|off]
polar_enable_default_polar_comp_guc on [on|off]
polar_stat_stale_cost 0.0001 [0-2147483647]
polar_auditlog_max_query_length 4096 [512-49152]
polar_use_statistical_relpages on [on|off]
shared_preload_libraries 'polar_vfs,polar_worker,dbms_pipe,
polar_gen,pg_stat_statements,auth_delay,
auto_explain,pg_cron,dbms_job,polar_stat_sql'
^'(polar_vfs,polar_worker)(,\w+)*'$
wal_keep_segments 32 [0-100000]
temp_tablespaces 'polar_tmp'
polar_csn_enable on [on|off]
polar_max_non_super_conns 400 [-1-262143]
polar_enable_master_xlog_read_ahead on [on|off]
polar_enable_early_launch_checkpointer on [on|off]
polarenable_early
launch_parallel_bgwriter
on [on|off]
polar_enable_wal_prefetch off [on|off]
polar_enable_persisted_buffer_pool on [on|off]
polar_cast_decode_list ''