Aurora PostgreSQL) RPMインストールとのパフォーマンス系パラメータのデフォルト値比較

TL;DR

  • PostgreSQLのパフォーマンス系パラメータについて、EC2にPostgreSQLをRPMインストールしたときのデフォルト値と、Aurora PostgreSQLの特定インスタンスタイプでのデフォルト値を比較
  • パフォーマンス系パラメータ203個のうち、RPMインストールとAuroraで差異のあるパラメータは37個あった
    • ただし特にAuroraで、特にメモリ関連のパラメータなどは、インスタンスタイプに応じて値が動的に変更されるので、あくまで参考まで
    • ちなみにパフォーマンス系パラメータ203個のうち、79個はAuroraで変更できないパラメータ。

前提

  • PostgreSQL15.3(RPMインストール/Aurora PostgreSQLとも)
  • 比較対象のパラメータは、以下記事のパラメータ(203個)

一覧の見方

  • 4列あって、左から
    • パラメータ名、RPMインストール、Aurora、Auroraで変更可能
  • パラメータ名昇順
  • 各列の説明
    • RPMインストール列
      • EC2+RHEL(x64)+PostgreSQL15.3(RPMインストール)
      • パラメータはインストールデフォルトの値
    • Aurora列
      • Aurora PostgreSQL15.3+db.r6i.large
      • パラメータは起動後デフォルトの値
        • メモリ関連のパラメータなどは特に、インスタンスタイプから動的に設定されてるはずなので参考まで
      • 青い下線を引いた値は、RPMインストールと異なる値
    • Auroraで変更可能列
      • AuroraDBクラスターまたはAuroraDBインスタンスで変更可能かどうか
      • クラスターとインスタンスで比較してみたら、インスタンスで変更可能なものはすべてクラスタで変更可能で、逆にクラスタで変更可能だがインスタンスで変更できないものがあったので、AuroraDBクラスターでの変更可能かどうかの値を記載(これで、クラスタで変更可能またはクラスタとインスタンスの両方で変更可能、の一覧になる)
      • 空白の値について
        • PostgreSQL内部の値ではないので、AWSCLIで取得するのだが、PostgreSQLのパラメータで値が取れないものがある(AWSCLIでdescribe結果のJSONの中にパラメータが存在しない)。仕方ないのでそういうものは空白

一覧(カテゴリごと)

Autovacuum

nameRPMインストールAuroraAuroraで変更可能
autovacuumonontrue
autovacuum_analyze_scale_factor0.10.05true
autovacuum_analyze_threshold5050true
autovacuum_freeze_max_age200000000200000000true
autovacuum_max_workers33true
autovacuum_multixact_freeze_max_age400000000400000000true
autovacuum_naptime1min5strue
autovacuum_vacuum_cost_delay2ms5mstrue
autovacuum_vacuum_cost_limit-1200true
autovacuum_vacuum_insert_scale_factor0.20.2
autovacuum_vacuum_insert_threshold10001000
autovacuum_vacuum_scale_factor0.20.1true
autovacuum_vacuum_threshold5050true

Client Connection Defaults / Other Defaults

gin_fuzzy_search_limit00true

Client Connection Defaults / Shared Library Preloading

jit_providerllvmjitllvmjit
local_preload_libraries
session_preload_libraries
shared_preload_libraries環境依存環境依存true

Client Connection Defaults / Statement Behavior

default_table_access_methodheapheap
default_toast_compressionpglzpglz
default_transaction_deferrableoffofftrue
default_transaction_isolationread committedread committedtrue
default_transaction_read_onlyoffofftrue
gin_pending_list_limit4MB4MBtrue
idle_in_transaction_session_timeout01dtrue
idle_session_timeout00
lock_timeout00
row_securityonontrue
statement_timeout00true
transaction_deferrableoffoff
transaction_isolationread committedread committed
transaction_read_onlyoffoff
vacuum_failsafe_age16000000001200000000
vacuum_freeze_min_age5000000050000000true
vacuum_freeze_table_age150000000150000000true
vacuum_multixact_failsafe_age16000000001200000000
vacuum_multixact_freeze_min_age50000005000000true
vacuum_multixact_freeze_table_age150000000150000000true

Connections and Authentication / Authentication

authentication_timeout1min1mintrue

Connections and Authentication / Connection Settings

client_connection_check_interval00
max_connections1001707true
tcp_keepalives_count92true
tcp_keepalives_idle7200300true
tcp_keepalives_interval7530true
tcp_user_timeout00

Connections and Authentication / SSL

ssloffontrue

Developer Options

debug_discard_caches00
force_parallel_modeoffofftrue
ignore_system_indexesoffoff
jit_tuple_deformingonon
trace_sortoffoff
wal_consistency_checking

Lock Management

deadlock_timeout1s1strue
max_locks_per_transaction6464true
max_pred_locks_per_page22true
max_pred_locks_per_relation-2-2true
max_pred_locks_per_transaction6464true
block_size81928192

Preset Options

block_size81928192
data_checksumsoffoff
debug_assertionsoffoff
segment_size1GB1GB
shared_memory_size148MB10516MB
shared_memory_size_in_huge_pages745259
wal_block_size81928192
wal_segment_size16MB64MB

Query Tuning / Genetic Query Optimizer

geqoonontrue
geqo_effort55true
geqo_generations00true
geqo_pool_size00true
geqo_seed00true
geqo_selection_bias22true
geqo_threshold1212true

Query Tuning / Other Planner Options

constraint_exclusionpartitionpartitiontrue
cursor_tuple_fraction0.10.1true
default_statistics_target100100true
jitonoff
plan_cache_modeautoauto
recursive_worktable_factor1010

Query Tuning / Planner Cost Constants

cpu_index_tuple_cost0.0050.005true
cpu_operator_cost0.00250.0025true
cpu_tuple_cost0.010.01true
effective_cache_size4GB10415664kBtrue
jit_above_cost100000100000
jit_inline_above_cost500000500000
jit_optimize_above_cost500000500000
min_parallel_index_scan_size512kB512kBtrue
min_parallel_table_scan_size8MB8MBtrue
parallel_setup_cost10001000true
parallel_tuple_cost0.10.1true
random_page_cost44true
seq_page_cost11true

Query Tuning / Planner Method Configuration

enable_async_appendonon
enable_bitmapscanonontrue
enable_gathermergeonontrue
enable_hashaggonontrue
enable_hashjoinonontrue
enable_incremental_sortonon
enable_indexonlyscanonontrue
enable_indexscanonontrue
enable_materialonontrue
enable_memoizeonon
enable_mergejoinonontrue
enable_nestlooponontrue
enable_parallel_appendonontrue
enable_parallel_hashonontrue
enable_partition_pruningonontrue
enable_partitionwise_aggregateoffofftrue
enable_partitionwise_joinoffofftrue
enable_seqscanonontrue
enable_sortonontrue
enable_tidscanonontrue

Reporting and Logging / Process Title

update_process_titleonontrue

Reporting and Logging / What to Log

debug_pretty_printonontrue
debug_print_parseoffofftrue
debug_print_planoffofftrue
debug_print_rewrittenoffofftrue
log_autovacuum_min_duration010strue
log_checkpointsonon
log_connectionsoffofftrue
log_disconnectionsoffofftrue
log_durationoffofftrue
log_error_verbositydefaultdefaulttrue
log_lock_waitsoffofftrue
log_parameter_max_length-1-1
log_parameter_max_length_on_error00
log_statementnonenonetrue
log_temp_files-1-1true

Reporting and Logging / When to Log

log_min_duration_sample-1-1
log_min_duration_statement-1-1true
log_min_error_statementerrorerrortrue
log_min_messageswarningwarningtrue
log_startup_progress_interval10s10s
log_statement_sample_rate11
log_transaction_sample_rate00

Resource Usage / Asynchronous Behavior

backend_flush_after00true
effective_io_concurrency1256false
maintenance_io_concurrency101
max_parallel_maintenance_workers22true
max_parallel_workers88true
max_parallel_workers_per_gather22true
max_worker_processes88true
old_snapshot_threshold-1-1true
parallel_leader_participationonontrue

Resource Usage / Background Writer

bgwriter_delay200ms200ms
bgwriter_flush_after512kB512kBtrue
bgwriter_lru_maxpages100100
bgwriter_lru_multiplier22

Resource Usage / Cost-Based Vacuum Delay

vacuum_cost_delay00true
vacuum_cost_limit200200true
vacuum_cost_page_dirty2020
vacuum_cost_page_hit11true
vacuum_cost_page_miss20true

Resource Usage / Disk

temp_file_limit-1-1true

Resource Usage / Kernel Resources

max_files_per_process10001000true

Resource Usage / Memory

autovacuum_work_mem-1496670kBtrue
dynamic_shared_memory_typeposixposix
hash_mem_multiplier22
huge_pagestryonfalse
huge_page_size00
logical_decoding_work_mem64MB64MBtrue
maintenance_work_mem64MB254MBtrue
max_prepared_transactions00true
max_stack_depth2MB6MBtrue
min_dynamic_shared_memory00
shared_buffers128MB1301958true
shared_memory_typemmapmmap
temp_buffers8MB8MBtrue
work_mem4MB4MBtrue

Statistics / Cumulative Query and Index Statistics

stats_fetch_consistencycachecache
track_activitiesonontrue
track_activity_query_size1kB4kBtrue
track_countsonontrue
track_functionsallpltrue
track_io_timingoffontrue
track_wal_io_timingoffoff

Statistics / Monitoring

compute_query_idautoauto
log_executor_statsoffofftrue
log_parser_statsoffofftrue
log_planner_statsoffofftrue
log_statement_statsoffofftrue

Version and Platform Compatibility / Previous PostgreSQL Versions

synchronize_seqscansonontrue

Write-Ahead Log / Archiving

archive_timeout05minfalse

Write-Ahead Log / Checkpoints

checkpoint_completion_target0.90.9
checkpoint_flush_after256kB256kBtrue
checkpoint_timeout5min1minfalse
checkpoint_warning30s30s
max_wal_size1GB1GB
min_wal_size80MB512MBfalse

Write-Ahead Log / Recovery

recovery_prefetchtryoff
wal_decode_buffer_size512kB512kB

Write-Ahead Log / Settings

commit_delay00
commit_siblings55
fsynconon
full_page_writesonoff
synchronous_commitonontrue
wal_buffers4MB-1true
wal_compressionoffoff
wal_levelreplicareplica
wal_log_hintsoffoff
wal_skip_threshold2MB2MB
wal_sync_methodfdatasyncfdatasync
wal_writer_delay200ms200ms
wal_writer_flush_after1MB1MB

値の異なるもののみ抜粋した一覧

  • 一番左にカテゴリ列を追加
  • 上記一覧でAurora列に青い下線が引いてある値を網羅(37個)
categorynameRPMインストールAuroraAuroraで変更可能
Autovacuumautovacuum_analyze_scale_factor0.10.05true
Autovacuumautovacuum_naptime1min5strue
Autovacuumautovacuum_vacuum_cost_delay2ms5mstrue
Autovacuumautovacuum_vacuum_cost_limit-1200true
Autovacuumautovacuum_vacuum_scale_factor0.20.1true
Client Connection Defaults / Statement Behavioridle_in_transaction_session_timeout01dtrue
Client Connection Defaults / Statement Behaviorvacuum_failsafe_age16000000001200000000
Client Connection Defaults / Statement Behaviorvacuum_multixact_failsafe_age16000000001200000000
Connections and Authentication / Connection Settingsmax_connections1001707true
Connections and Authentication / Connection Settingstcp_keepalives_count92true
Connections and Authentication / Connection Settingstcp_keepalives_idle7200300true
Connections and Authentication / Connection Settingstcp_keepalives_interval7530true
Connections and Authentication / SSLssloffontrue
Preset Optionsshared_memory_size148MB10516MB
Preset Optionsshared_memory_size_in_huge_pages745259
Preset Optionswal_segment_size16MB64MB
Query Tuning / Other Planner Optionsjitonoff
Query Tuning / Planner Cost Constantseffective_cache_size4GB10415664kBtrue
Reporting and Logging / What to Loglog_autovacuum_min_duration010strue
Resource Usage / Asynchronous Behavioreffective_io_concurrency1256false
Resource Usage / Asynchronous Behaviormaintenance_io_concurrency101
Resource Usage / Cost-Based Vacuum Delayvacuum_cost_page_miss20true
Resource Usage / Memoryautovacuum_work_mem-1496670kBtrue
Resource Usage / Memoryhuge_pagestryonfalse
Resource Usage / Memorymaintenance_work_mem64MB254MBtrue
Resource Usage / Memorymax_stack_depth2MB6MBtrue
Resource Usage / Memoryshared_buffers128MB1301958true
Statistics / Cumulative Query and Index Statisticstrack_activity_query_size1kB4kBtrue
Statistics / Cumulative Query and Index Statisticstrack_functionsallpltrue
Statistics / Cumulative Query and Index Statisticstrack_io_timingoffontrue
Write-Ahead Log / Archivingarchive_timeout05minfalse
Write-Ahead Log / Checkpointscheckpoint_timeout5min1minfalse
Write-Ahead Log / Checkpointsmin_wal_size80MB512MBfalse
Write-Ahead Log / Recoveryrecovery_prefetchtryoff
Write-Ahead Log / Settingsfull_page_writesonoff
Write-Ahead Log / Settingswal_buffers4MB-1true

全パフォーマンス系パラメータ比較一覧

categorynameRPMインストールAuroraAuroraで変更可能
Autovacuumautovacuumonontrue
Autovacuumautovacuum_analyze_scale_factor0.10.05true
Autovacuumautovacuum_analyze_threshold5050true
Autovacuumautovacuum_freeze_max_age200000000200000000true
Autovacuumautovacuum_max_workers33true
Autovacuumautovacuum_multixact_freeze_max_age400000000400000000true
Autovacuumautovacuum_naptime1min5strue
Autovacuumautovacuum_vacuum_cost_delay2ms5mstrue
Autovacuumautovacuum_vacuum_cost_limit-1200true
Autovacuumautovacuum_vacuum_insert_scale_factor0.20.2
Autovacuumautovacuum_vacuum_insert_threshold10001000
Autovacuumautovacuum_vacuum_scale_factor0.20.1true
Autovacuumautovacuum_vacuum_threshold5050true
Client Connection Defaults / Other Defaultsgin_fuzzy_search_limit00true
Client Connection Defaults / Shared Library Preloadingjit_providerllvmjitllvmjit
Client Connection Defaults / Shared Library Preloadinglocal_preload_libraries
Client Connection Defaults / Shared Library Preloadingsession_preload_libraries
Client Connection Defaults / Shared Library Preloadingshared_preload_libraries環境依存環境依存true
Client Connection Defaults / Statement Behaviordefault_table_access_methodheapheap
Client Connection Defaults / Statement Behaviordefault_toast_compressionpglzpglz
Client Connection Defaults / Statement Behaviordefault_transaction_deferrableoffofftrue
Client Connection Defaults / Statement Behaviordefault_transaction_isolationread committedread committedtrue
Client Connection Defaults / Statement Behaviordefault_transaction_read_onlyoffofftrue
Client Connection Defaults / Statement Behaviorgin_pending_list_limit4MB4MBtrue
Client Connection Defaults / Statement Behavioridle_in_transaction_session_timeout01dtrue
Client Connection Defaults / Statement Behavioridle_session_timeout00
Client Connection Defaults / Statement Behaviorlock_timeout00
Client Connection Defaults / Statement Behaviorrow_securityonontrue
Client Connection Defaults / Statement Behaviorstatement_timeout00true
Client Connection Defaults / Statement Behaviortransaction_deferrableoffoff
Client Connection Defaults / Statement Behaviortransaction_isolationread committedread committed
Client Connection Defaults / Statement Behaviortransaction_read_onlyoffoff
Client Connection Defaults / Statement Behaviorvacuum_failsafe_age16000000001200000000
Client Connection Defaults / Statement Behaviorvacuum_freeze_min_age5000000050000000true
Client Connection Defaults / Statement Behaviorvacuum_freeze_table_age150000000150000000true
Client Connection Defaults / Statement Behaviorvacuum_multixact_failsafe_age16000000001200000000
Client Connection Defaults / Statement Behaviorvacuum_multixact_freeze_min_age50000005000000true
Client Connection Defaults / Statement Behaviorvacuum_multixact_freeze_table_age150000000150000000true
Connections and Authentication / Authenticationauthentication_timeout1min1mintrue
Connections and Authentication / Connection Settingsclient_connection_check_interval00
Connections and Authentication / Connection Settingsmax_connections1001707true
Connections and Authentication / Connection Settingstcp_keepalives_count92true
Connections and Authentication / Connection Settingstcp_keepalives_idle7200300true
Connections and Authentication / Connection Settingstcp_keepalives_interval7530true
Connections and Authentication / Connection Settingstcp_user_timeout00
Connections and Authentication / SSLssloffontrue
Developer Optionsdebug_discard_caches00
Developer Optionsforce_parallel_modeoffofftrue
Developer Optionsignore_system_indexesoffoff
Developer Optionsjit_tuple_deformingonon
Developer Optionstrace_sortoffoff
Developer Optionswal_consistency_checking
Lock Managementdeadlock_timeout1s1strue
Lock Managementmax_locks_per_transaction6464true
Lock Managementmax_pred_locks_per_page22true
Lock Managementmax_pred_locks_per_relation-2-2true
Lock Managementmax_pred_locks_per_transaction6464true
Preset Optionsblock_size81928192
Preset Optionsdata_checksumsoffoff
Preset Optionsdebug_assertionsoffoff
Preset Optionssegment_size1GB1GB
Preset Optionsshared_memory_size148MB10516MB
Preset Optionsshared_memory_size_in_huge_pages745259
Preset Optionswal_block_size81928192
Preset Optionswal_segment_size16MB64MB
Query Tuning / Genetic Query Optimizergeqoonontrue
Query Tuning / Genetic Query Optimizergeqo_effort55true
Query Tuning / Genetic Query Optimizergeqo_generations00true
Query Tuning / Genetic Query Optimizergeqo_pool_size00true
Query Tuning / Genetic Query Optimizergeqo_seed00true
Query Tuning / Genetic Query Optimizergeqo_selection_bias22true
Query Tuning / Genetic Query Optimizergeqo_threshold1212true
Query Tuning / Other Planner Optionsconstraint_exclusionpartitionpartitiontrue
Query Tuning / Other Planner Optionscursor_tuple_fraction0.10.1true
Query Tuning / Other Planner Optionsdefault_statistics_target100100true
Query Tuning / Other Planner Optionsjitonoff
Query Tuning / Other Planner Optionsplan_cache_modeautoauto
Query Tuning / Other Planner Optionsrecursive_worktable_factor1010
Query Tuning / Planner Cost Constantscpu_index_tuple_cost0.0050.005true
Query Tuning / Planner Cost Constantscpu_operator_cost0.00250.0025true
Query Tuning / Planner Cost Constantscpu_tuple_cost0.010.01true
Query Tuning / Planner Cost Constantseffective_cache_size4GB10415664kBtrue
Query Tuning / Planner Cost Constantsjit_above_cost100000100000
Query Tuning / Planner Cost Constantsjit_inline_above_cost500000500000
Query Tuning / Planner Cost Constantsjit_optimize_above_cost500000500000
Query Tuning / Planner Cost Constantsmin_parallel_index_scan_size512kB512kBtrue
Query Tuning / Planner Cost Constantsmin_parallel_table_scan_size8MB8MBtrue
Query Tuning / Planner Cost Constantsparallel_setup_cost10001000true
Query Tuning / Planner Cost Constantsparallel_tuple_cost0.10.1true
Query Tuning / Planner Cost Constantsrandom_page_cost44true
Query Tuning / Planner Cost Constantsseq_page_cost11true
Query Tuning / Planner Method Configurationenable_async_appendonon
Query Tuning / Planner Method Configurationenable_bitmapscanonontrue
Query Tuning / Planner Method Configurationenable_gathermergeonontrue
Query Tuning / Planner Method Configurationenable_hashaggonontrue
Query Tuning / Planner Method Configurationenable_hashjoinonontrue
Query Tuning / Planner Method Configurationenable_incremental_sortonon
Query Tuning / Planner Method Configurationenable_indexonlyscanonontrue
Query Tuning / Planner Method Configurationenable_indexscanonontrue
Query Tuning / Planner Method Configurationenable_materialonontrue
Query Tuning / Planner Method Configurationenable_memoizeonon
Query Tuning / Planner Method Configurationenable_mergejoinonontrue
Query Tuning / Planner Method Configurationenable_nestlooponontrue
Query Tuning / Planner Method Configurationenable_parallel_appendonontrue
Query Tuning / Planner Method Configurationenable_parallel_hashonontrue
Query Tuning / Planner Method Configurationenable_partition_pruningonontrue
Query Tuning / Planner Method Configurationenable_partitionwise_aggregateoffofftrue
Query Tuning / Planner Method Configurationenable_partitionwise_joinoffofftrue
Query Tuning / Planner Method Configurationenable_seqscanonontrue
Query Tuning / Planner Method Configurationenable_sortonontrue
Query Tuning / Planner Method Configurationenable_tidscanonontrue
Reporting and Logging / Process Titleupdate_process_titleonontrue
Reporting and Logging / What to Logdebug_pretty_printonontrue
Reporting and Logging / What to Logdebug_print_parseoffofftrue
Reporting and Logging / What to Logdebug_print_planoffofftrue
Reporting and Logging / What to Logdebug_print_rewrittenoffofftrue
Reporting and Logging / What to Loglog_autovacuum_min_duration010strue
Reporting and Logging / What to Loglog_checkpointsonon
Reporting and Logging / What to Loglog_connectionsoffofftrue
Reporting and Logging / What to Loglog_disconnectionsoffofftrue
Reporting and Logging / What to Loglog_durationoffofftrue
Reporting and Logging / What to Loglog_error_verbositydefaultdefaulttrue
Reporting and Logging / What to Loglog_lock_waitsoffofftrue
Reporting and Logging / What to Loglog_parameter_max_length-1-1
Reporting and Logging / What to Loglog_parameter_max_length_on_error00
Reporting and Logging / What to Loglog_statementnonenonetrue
Reporting and Logging / What to Loglog_temp_files-1-1true
Reporting and Logging / When to Loglog_min_duration_sample-1-1
Reporting and Logging / When to Loglog_min_duration_statement-1-1true
Reporting and Logging / When to Loglog_min_error_statementerrorerrortrue
Reporting and Logging / When to Loglog_min_messageswarningwarningtrue
Reporting and Logging / When to Loglog_startup_progress_interval10s10s
Reporting and Logging / When to Loglog_statement_sample_rate11
Reporting and Logging / When to Loglog_transaction_sample_rate00
Resource Usage / Asynchronous Behaviorbackend_flush_after00true
Resource Usage / Asynchronous Behavioreffective_io_concurrency1256false
Resource Usage / Asynchronous Behaviormaintenance_io_concurrency101
Resource Usage / Asynchronous Behaviormax_parallel_maintenance_workers22true
Resource Usage / Asynchronous Behaviormax_parallel_workers88true
Resource Usage / Asynchronous Behaviormax_parallel_workers_per_gather22true
Resource Usage / Asynchronous Behaviormax_worker_processes88true
Resource Usage / Asynchronous Behaviorold_snapshot_threshold-1-1true
Resource Usage / Asynchronous Behaviorparallel_leader_participationonontrue
Resource Usage / Background Writerbgwriter_delay200ms200ms
Resource Usage / Background Writerbgwriter_flush_after512kB512kBtrue
Resource Usage / Background Writerbgwriter_lru_maxpages100100
Resource Usage / Background Writerbgwriter_lru_multiplier22
Resource Usage / Cost-Based Vacuum Delayvacuum_cost_delay00true
Resource Usage / Cost-Based Vacuum Delayvacuum_cost_limit200200true
Resource Usage / Cost-Based Vacuum Delayvacuum_cost_page_dirty2020
Resource Usage / Cost-Based Vacuum Delayvacuum_cost_page_hit11true
Resource Usage / Cost-Based Vacuum Delayvacuum_cost_page_miss20true
Resource Usage / Disktemp_file_limit-1-1true
Resource Usage / Kernel Resourcesmax_files_per_process10001000true
Resource Usage / Memoryautovacuum_work_mem-1496670kBtrue
Resource Usage / Memorydynamic_shared_memory_typeposixposix
Resource Usage / Memoryhash_mem_multiplier22
Resource Usage / Memoryhuge_pagestryonfalse
Resource Usage / Memoryhuge_page_size00
Resource Usage / Memorylogical_decoding_work_mem64MB64MBtrue
Resource Usage / Memorymaintenance_work_mem64MB254MBtrue
Resource Usage / Memorymax_prepared_transactions00true
Resource Usage / Memorymax_stack_depth2MB6MBtrue
Resource Usage / Memorymin_dynamic_shared_memory00
Resource Usage / Memoryshared_buffers128MB1301958true
Resource Usage / Memoryshared_memory_typemmapmmap
Resource Usage / Memorytemp_buffers8MB8MBtrue
Resource Usage / Memorywork_mem4MB4MBtrue
Statistics / Cumulative Query and Index Statisticsstats_fetch_consistencycachecache
Statistics / Cumulative Query and Index Statisticstrack_activitiesonontrue
Statistics / Cumulative Query and Index Statisticstrack_activity_query_size1kB4kBtrue
Statistics / Cumulative Query and Index Statisticstrack_countsonontrue
Statistics / Cumulative Query and Index Statisticstrack_functionsallpltrue
Statistics / Cumulative Query and Index Statisticstrack_io_timingoffontrue
Statistics / Cumulative Query and Index Statisticstrack_wal_io_timingoffoff
Statistics / Monitoringcompute_query_idautoauto
Statistics / Monitoringlog_executor_statsoffofftrue
Statistics / Monitoringlog_parser_statsoffofftrue
Statistics / Monitoringlog_planner_statsoffofftrue
Statistics / Monitoringlog_statement_statsoffofftrue
Version and Platform Compatibility / Previous PostgreSQL Versionssynchronize_seqscansonontrue
Write-Ahead Log / Archivingarchive_timeout05minfalse
Write-Ahead Log / Checkpointscheckpoint_completion_target0.90.9
Write-Ahead Log / Checkpointscheckpoint_flush_after256kB256kBtrue
Write-Ahead Log / Checkpointscheckpoint_timeout5min1minfalse
Write-Ahead Log / Checkpointscheckpoint_warning30s30s
Write-Ahead Log / Checkpointsmax_wal_size1GB1GB
Write-Ahead Log / Checkpointsmin_wal_size80MB512MBfalse
Write-Ahead Log / Recoveryrecovery_prefetchtryoff
Write-Ahead Log / Recoverywal_decode_buffer_size512kB512kB
Write-Ahead Log / Settingscommit_delay00
Write-Ahead Log / Settingscommit_siblings55
Write-Ahead Log / Settingsfsynconon
Write-Ahead Log / Settingsfull_page_writesonoff
Write-Ahead Log / Settingssynchronous_commitonontrue
Write-Ahead Log / Settingswal_buffers4MB-1true
Write-Ahead Log / Settingswal_compressionoffoff
Write-Ahead Log / Settingswal_levelreplicareplica
Write-Ahead Log / Settingswal_log_hintsoffoff
Write-Ahead Log / Settingswal_skip_threshold2MB2MB
Write-Ahead Log / Settingswal_sync_methodfdatasyncfdatasync
Write-Ahead Log / Settingswal_writer_delay200ms200ms
Write-Ahead Log / Settingswal_writer_flush_after1MB1MB

ついでにAuroraで変更不可能なパフォーマンス系パラメータ一覧

  • AWSCLIでAururaDBクラスターのデフォルトパラメータグループに項目のないパラメータ(一覧上では空白)と、パラメータが取得できて「Auroraで変更可能」列がfalseのもの(79個)
categorynameRPMインストールAuroraAuroraで変更可能
Autovacuumautovacuum_vacuum_insert_scale_factor0.20.2
Autovacuumautovacuum_vacuum_insert_threshold10001000
Client Connection Defaults / Shared Library Preloadingjit_providerllvmjitllvmjit
Client Connection Defaults / Shared Library Preloadinglocal_preload_libraries
Client Connection Defaults / Shared Library Preloadingsession_preload_libraries
Client Connection Defaults / Statement Behaviordefault_table_access_methodheapheap
Client Connection Defaults / Statement Behaviordefault_toast_compressionpglzpglz
Client Connection Defaults / Statement Behavioridle_session_timeout00
Client Connection Defaults / Statement Behaviorlock_timeout00
Client Connection Defaults / Statement Behaviortransaction_deferrableoffoff
Client Connection Defaults / Statement Behaviortransaction_isolationread committedread committed
Client Connection Defaults / Statement Behaviortransaction_read_onlyoffoff
Client Connection Defaults / Statement Behaviorvacuum_failsafe_age16000000001200000000
Client Connection Defaults / Statement Behaviorvacuum_multixact_failsafe_age16000000001200000000
Connections and Authentication / Connection Settingsclient_connection_check_interval00
Connections and Authentication / Connection Settingstcp_user_timeout00
Developer Optionsdebug_discard_caches00
Developer Optionsignore_system_indexesoffoff
Developer Optionsjit_tuple_deformingonon
Developer Optionstrace_sortoffoff
Developer Optionswal_consistency_checking
Preset Optionsblock_size81928192
Preset Optionsdata_checksumsoffoff
Preset Optionsdebug_assertionsoffoff
Preset Optionssegment_size1GB1GB
Preset Optionsshared_memory_size148MB10516MB
Preset Optionsshared_memory_size_in_huge_pages745259
Preset Optionswal_block_size81928192
Preset Optionswal_segment_size16MB64MB
Query Tuning / Other Planner Optionsjitonoff
Query Tuning / Other Planner Optionsplan_cache_modeautoauto
Query Tuning / Other Planner Optionsrecursive_worktable_factor1010
Query Tuning / Planner Cost Constantsjit_above_cost100000100000
Query Tuning / Planner Cost Constantsjit_inline_above_cost500000500000
Query Tuning / Planner Cost Constantsjit_optimize_above_cost500000500000
Query Tuning / Planner Method Configurationenable_async_appendonon
Query Tuning / Planner Method Configurationenable_incremental_sortonon
Query Tuning / Planner Method Configurationenable_memoizeonon
Reporting and Logging / What to Loglog_checkpointsonon
Reporting and Logging / What to Loglog_parameter_max_length-1-1
Reporting and Logging / What to Loglog_parameter_max_length_on_error00
Reporting and Logging / When to Loglog_min_duration_sample-1-1
Reporting and Logging / When to Loglog_startup_progress_interval10s10s
Reporting and Logging / When to Loglog_statement_sample_rate11
Reporting and Logging / When to Loglog_transaction_sample_rate00
Resource Usage / Asynchronous Behavioreffective_io_concurrency1256false
Resource Usage / Asynchronous Behaviormaintenance_io_concurrency101
Resource Usage / Background Writerbgwriter_delay200ms200ms
Resource Usage / Background Writerbgwriter_lru_maxpages100100
Resource Usage / Background Writerbgwriter_lru_multiplier22
Resource Usage / Cost-Based Vacuum Delayvacuum_cost_page_dirty2020
Resource Usage / Memorydynamic_shared_memory_typeposixposix
Resource Usage / Memoryhash_mem_multiplier22
Resource Usage / Memoryhuge_pagestryonfalse
Resource Usage / Memoryhuge_page_size00
Resource Usage / Memorymin_dynamic_shared_memory00
Resource Usage / Memoryshared_memory_typemmapmmap
Statistics / Cumulative Query and Index Statisticsstats_fetch_consistencycachecache
Statistics / Cumulative Query and Index Statisticstrack_wal_io_timingoffoff
Statistics / Monitoringcompute_query_idautoauto
Write-Ahead Log / Archivingarchive_timeout05minfalse
Write-Ahead Log / Checkpointscheckpoint_completion_target0.90.9
Write-Ahead Log / Checkpointscheckpoint_timeout5min1minfalse
Write-Ahead Log / Checkpointscheckpoint_warning30s30s
Write-Ahead Log / Checkpointsmax_wal_size1GB1GB
Write-Ahead Log / Checkpointsmin_wal_size80MB512MBfalse
Write-Ahead Log / Recoveryrecovery_prefetchtryoff
Write-Ahead Log / Recoverywal_decode_buffer_size512kB512kB
Write-Ahead Log / Settingscommit_delay00
Write-Ahead Log / Settingscommit_siblings55
Write-Ahead Log / Settingsfsynconon
Write-Ahead Log / Settingsfull_page_writesonoff
Write-Ahead Log / Settingswal_compressionoffoff
Write-Ahead Log / Settingswal_levelreplicareplica
Write-Ahead Log / Settingswal_log_hintsoffoff
Write-Ahead Log / Settingswal_skip_threshold2MB2MB
Write-Ahead Log / Settingswal_sync_methodfdatasyncfdatasync
Write-Ahead Log / Settingswal_writer_delay200ms200ms
Write-Ahead Log / Settingswal_writer_flush_after1MB1MB

備考

一覧の作成方法

  • EC2+PostgreSQLにpsqlでつないで、show_all結果をCSVに出力(RPMインストール列用)
  • Auroraにpsqlでつないで、show_all結果をCSVに出力(Aurora列用)
  • AWSCLIでAuroraDBクラスターのデフォルトパラメータグループをdescribeして、JSONをCSVに出力(Auroraで変更可能列用)
  • 上記3つのCSVをCOPYコマンドで個別のテーブルに投入
  • psqlで以下を抽出
    • RPMインストール列用テーブルに対して、パラメータ名をキーにして、Aurora列用テーブルとAuroraで変更可能列をleft join