add postgres_row Configurations

This commit is contained in:
Attilio Greco 2022-02-07 14:03:21 +01:00
parent 578ccfe86c
commit 32fec8159c
2 changed files with 42 additions and 24 deletions

View File

@ -1,38 +1,55 @@
---
# defaults file for postgres
postgres_repo: 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm'
postgres_repo: "https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm"
postgres_version: 13
postgis_install: true
postgis_version: 31
pg_config_listen_addresses: localhost
pg_config_port: 5432
pg_config_max_connections: 1024
pg_config_shared_buffers: 32MB
pg_config_shared_buffers: 2GB
pg_config_temp_buffers: 8MB
pg_config_work_mem: 4MB
pg_config_max_wal_size: 1GB
pg_config_min_wal_size: 80MB
pg_config_min_wal_size: 4G
pg_config_log_filename: postgresql-%Y-%m-%d_%H%M%S.log
pg_config_timezone: 'Europe/Rome'
pg_config_timezone: "Europe/Rome"
pg_config_row: ""
# pg_config_row: |
# max_connections = 200
# effective_cache_size = 6GB
# maintenance_work_mem = 512MB
# checkpoint_completion_target = 0.9
# wal_buffers = 16MB
# default_statistics_target = 100
# random_page_cost = 1.1
# effective_io_concurrency = 200
# work_mem = 10485kB
# min_wal_size = 1GB
# max_wal_size = 4GB
# max_worker_processes = 2
# max_parallel_workers_per_gather = 1
# max_parallel_workers = 2
# max_parallel_maintenance_workers = 1
pg_hba_user_options:
- contype: host
users: all
source: 127.0.0.1/32
databases: all
method: md5
- contype: host
users: all
source: 192.168.100.10/24
databases: all
method: md5
- contype: host
users: all
source: 192.168.200.1/24
databases: all
method: md5
- contype: host
users: all
source: 192.169.100.1/24
databases: all
method: md5
- contype: host
users: all
source: 127.0.0.1/32
databases: all
method: md5
- contype: host
users: all
source: 192.168.100.10/24
databases: all
method: md5
- contype: host
users: all
source: 192.168.200.1/24
databases: all
method: md5
- contype: host
users: all
source: 192.169.100.1/24
databases: all
method: md5

View File

@ -786,3 +786,4 @@ default_text_search_config = 'pg_catalog.english'
#------------------------------------------------------------------------------
# Add settings for extensions here
{{pg_config_row}}