bundles/postgresql: improvements
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
- support other postgresql versions - manage configs using bw
This commit is contained in:
parent
7f36516faa
commit
a160e7cf46
5 changed files with 224 additions and 12 deletions
30
bundles/postgresql/files/postgresql.conf
Normal file
30
bundles/postgresql/files/postgresql.conf
Normal file
|
@ -0,0 +1,30 @@
|
|||
data_directory = '/var/lib/postgresql/${version}/main'
|
||||
hba_file = '/etc/postgresql/${version}/main/pg_hba.conf'
|
||||
ident_file = '/etc/postgresql/${version}/main/pg_ident.conf'
|
||||
external_pid_file = '/var/run/postgresql/${version}-main.pid'
|
||||
% if version == '9.1':
|
||||
unix_socket_directory = '/var/run/postgresql'
|
||||
% else:
|
||||
unix_socket_directories = '/var/run/postgresql'
|
||||
% endif
|
||||
port = 5432
|
||||
listen_addresses = 'localhost'
|
||||
max_connections = ${max_connections}
|
||||
autovacuum_max_workers = ${autovacuum_max_workers}
|
||||
maintenance_work_mem = ${maintenance_work_mem}MB
|
||||
work_mem = ${work_mem}MB
|
||||
shared_buffers = ${shared_buffers}MB
|
||||
temp_buffers = ${temp_buffers}MB
|
||||
log_destination = syslog
|
||||
datestyle = 'iso, ymd'
|
||||
timezone = 'localtime'
|
||||
lc_messages = 'en_US.UTF-8'
|
||||
lc_monetary = 'en_US.UTF-8'
|
||||
lc_numeric = 'en_US.UTF-8'
|
||||
lc_time = 'en_US.UTF-8'
|
||||
default_text_search_config = 'pg_catalog.english'
|
||||
% if slow_query_log_sec > 0:
|
||||
log_min_duration_statement = ${slow_query_log_sec*1000}
|
||||
% else:
|
||||
log_min_duration_statement = -1
|
||||
% endif
|
Loading…
Add table
Add a link
Reference in a new issue