Commit adf4b3a6 authored by kaiyou's avatar kaiyou

update postgresql configurations

parent 562ccd29
# Base settings # Base settings
listen_addresses = '*' listen_addresses = '*'
max_connections = 100 max_connections = 20
shared_buffers = 128MB shared_buffers = 128MB
dynamic_shared_memory_type = posix dynamic_shared_memory_type = posix
......
# Base settings # Base settings
listen_addresses = '*' listen_addresses = '*'
max_connections = 100 max_connections = 20
shared_buffers = 128MB shared_buffers = 128MB
dynamic_shared_memory_type = posix dynamic_shared_memory_type = posix
......
# Base settings # Base settings
listen_addresses = '*' listen_addresses = '*'
max_connections = 100 max_connections = 20
shared_buffers = 128MB shared_buffers = 128MB
dynamic_shared_memory_type = posix dynamic_shared_memory_type = posix
# Backups # Backups
wal_level = archive wal_level = archive
max_wal_senders = 1 max_wal_senders = 2
archive_mode = on archive_mode = on
archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' archive_command = 'test ! -f /wal/%f && cp %p /wal/%f'
......
# Base settings # Base settings
listen_addresses = '*' listen_addresses = '*'
max_connections = 100 max_connections = 20
shared_buffers = 128MB shared_buffers = 128MB
dynamic_shared_memory_type = posix dynamic_shared_memory_type = posix
...@@ -23,3 +23,4 @@ default_text_search_config = 'pg_catalog.english' ...@@ -23,3 +23,4 @@ default_text_search_config = 'pg_catalog.english'
# Extended options # Extended options
shared_preload_libraries = 'pg_stat_statements' shared_preload_libraries = 'pg_stat_statements'
pg_stat_statements.track = all pg_stat_statements.track = all
# Base settings # Base settings
listen_addresses = '*' listen_addresses = '*'
max_connections = 100 max_connections = 20
shared_buffers = 128MB shared_buffers = 128MB
dynamic_shared_memory_type = posix dynamic_shared_memory_type = posix
# Backups # Backups
wal_level = archive wal_level = archive
max_wal_senders = 5 max_wal_senders = 2
archive_mode = on archive_mode = on
archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' archive_command = 'test ! -f /wal/%f && cp %p /wal/%f'
......
# Base settings # Base settings
listen_addresses = '*' listen_addresses = '*'
max_connections = 100 max_connections = 20
shared_buffers = 128MB shared_buffers = 128MB
dynamic_shared_memory_type = posix dynamic_shared_memory_type = posix
# Backups # Backups
wal_level = archive wal_level = archive
max_wal_senders = 1 max_wal_senders = 2
archive_mode = on archive_mode = on
archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' archive_command = 'test ! -f /wal/%f && cp %p /wal/%f'
......
...@@ -2,12 +2,11 @@ ...@@ -2,12 +2,11 @@
listen_addresses = '*' listen_addresses = '*'
max_connections = 20 max_connections = 20
shared_buffers = 512MB shared_buffers = 512MB
work_mem = 64MB
dynamic_shared_memory_type = posix dynamic_shared_memory_type = posix
# Backups # Backups
wal_level = archive wal_level = archive
max_wal_senders = 1 max_wal_senders = 2
archive_mode = on archive_mode = on
archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' archive_command = 'test ! -f /wal/%f && cp %p /wal/%f'
......
# Base settings # Base settings
listen_addresses = '*' listen_addresses = '*'
max_connections = 100 max_connections = 20
shared_buffers = 128MB shared_buffers = 128MB
dynamic_shared_memory_type = posix dynamic_shared_memory_type = posix
# Backups # Backups
wal_level = archive wal_level = archive
max_wal_senders = 1 max_wal_senders = 2
archive_mode = on archive_mode = on
archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' archive_command = 'test ! -f /wal/%f && cp %p /wal/%f'
......
# Base settings # Base settings
listen_addresses = '*' listen_addresses = '*'
max_connections = 100 max_connections = 20
shared_buffers = 128MB shared_buffers = 128MB
dynamic_shared_memory_type = posix dynamic_shared_memory_type = posix
# Backups # Backups
wal_level = archive wal_level = archive
max_wal_senders = 5 max_wal_senders = 2
archive_mode = on archive_mode = on
archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' archive_command = 'test ! -f /wal/%f && cp %p /wal/%f'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment