-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended and adapted to install PostgreSQL 10 for CentOS and Ubuntu #267
Changes from all commits
93b7143
b6b12a7
430bb1e
fd9b231
5a02391
3dec063
db0e837
fec5895
59c1ccc
82140ca
9cdd7ae
61b63c5
996d471
53c7d5b
511f5b0
dec9295
7ae272f
bf33550
38b8851
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,6 +116,7 @@ postgresql_ssl_ciphers: | |
- "@STRENGTH" | ||
postgresql_ssl_prefer_server_ciphers: on | ||
postgresql_ssl_ecdh_curve: "prime256v1" | ||
postgresal_ssl_dh_params_file: "" # (>= 10) | ||
postgresql_ssl_renegotiation_limit: 512MB # amount of data between renegotiations | ||
postgresql_ssl_cert_file: "/etc/ssl/certs/ssl-cert-snakeoil.pem" # (>= 9.2) | ||
postgresql_ssl_key_file: "/etc/ssl/private/ssl-cert-snakeoil.key" # (>= 9.2) | ||
|
@@ -199,6 +200,7 @@ postgresql_bgwriter_flush_after: 0 # (>= 9.6) 0 disables, | |
postgresql_effective_io_concurrency: 1 # 1-1000; 0 disables prefetching | ||
postgresql_max_worker_processes: 8 # (change requires restart) | ||
postgresql_max_parallel_workers_per_gather: 0 # (>= 9.6) taken from max_worker_processes | ||
postgresql_max_parallel_workers: 8 # (>= 10) | ||
postgresql_old_snapshot_threshold: -1 # (>= 9.6) 1min-60d; -1 disables; 0 is immediate | ||
# (change requires restart) | ||
postgresql_backend_flush_after: 0 # (>= 9.6) 0 disables, default is 0 | ||
|
@@ -319,6 +321,15 @@ postgresql_wal_receiver_timeout: 60s | |
# time to wait before retrying to retrieve WAL after a failed attempt | ||
postgresql_wal_retrieve_retry_interval: 5s # (>= 9.5) | ||
|
||
# - Subscribers - (>= 10) | ||
|
||
# These settings are ignored on a publisher. | ||
|
||
postgresql_max_logical_replication_workers: 4 # (>= 10) taken from max_worker_processes | ||
# (change requires restart) | ||
postgresql_max_sync_workers_per_subscription: 2 # (>= 10) taken from max_logical_replication_workers | ||
|
||
|
||
#------------------------------------------------------------------------------ | ||
# QUERY TUNING | ||
#------------------------------------------------------------------------------ | ||
|
@@ -347,7 +358,9 @@ postgresql_cpu_index_tuple_cost: 0.005 # same scale as above | |
postgresql_cpu_operator_cost: 0.0025 # same scale as above | ||
postgresql_parallel_tuple_cost: 0.1 # same scale as above (>= 9.6) | ||
postgresql_parallel_setup_cost: 1000.0 # same scale as above (>= 9.6) | ||
postgresql_min_parallel_relation_size: 8MB # (>= 9.6) | ||
postgresql_min_parallel_relation_size: 8MB # (= 9.6) replaced by below two parameters in 10 | ||
postgresql_min_parallel_table_scan_size: 8MB # (>= 10) | ||
postgresql_min_parallel_index_scan_size: 512kB # (>= 10) | ||
postgresql_effective_cache_size: 128MB | ||
|
||
|
||
|
@@ -499,11 +512,13 @@ postgresql_log_line_prefix: "%t " | |
# log lock waits >= deadlock_timeout | ||
postgresql_log_lock_waits: off | ||
postgresql_log_statement: "none" # none, ddl, mod, all | ||
postgresql_log_replication_commands: off | ||
# log temporary files equal or larger | ||
postgresql_log_temp_files: -1 | ||
postgresql_log_timezone: "UTC" | ||
|
||
|
||
|
||
#------------------------------------------------------------------------------ | ||
# RUNTIME STATISTICS | ||
#------------------------------------------------------------------------------ | ||
|
@@ -588,6 +603,7 @@ postgresql_bytea_output: "hex" # hex, escape | |
postgresql_xmlbinary: "base64" | ||
postgresql_xmloption: "content" | ||
postgresql_gin_fuzzy_search_limit: 0 # (<= 9.2) | ||
postgresql_gin_pending_list_limit: 4MB # (>= 9.5) | ||
|
||
|
||
# - Locale and Formatting - | ||
|
@@ -639,6 +655,11 @@ postgresql_max_locks_per_transaction: 64 # min 10 | |
# lock table slots. | ||
postgresql_max_pred_locks_per_transaction: 64 # min 10 | ||
|
||
postgresql_max_pred_locks_per_relation: -2 # (>= 10) negative values mean | ||
# (max_pred_locks_per_transaction | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need these comments in this file? If someone wants to know what it does, then they can check the doco, or the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right. Same for other comments taken from the original config file. May be for less exerienced people like me helpful to read it here too :-). |
||
# / -max_pred_locks_per_relation) - 1 | ||
postgresql_max_pred_locks_per_page: 2 # (>= 10) min 0 | ||
|
||
|
||
#------------------------------------------------------------------------------ | ||
# VERSION/PLATFORM COMPATIBILITY | ||
|
@@ -713,6 +734,7 @@ postgresql_pgdg_releases: | |
9.4: 3, | ||
9.5: 3, | ||
9.6: 3, | ||
10: 2, | ||
} | ||
centos: { | ||
9.1: 7, | ||
|
@@ -721,6 +743,7 @@ postgresql_pgdg_releases: | |
9.4: 3, | ||
9.5: 3, | ||
9.6: 3, | ||
10: 2, | ||
} | ||
sl: { | ||
9.1: 8, | ||
|
@@ -729,6 +752,7 @@ postgresql_pgdg_releases: | |
9.4: 3, | ||
9.5: 3, | ||
9.6: 3, | ||
10: 2, | ||
} | ||
oraclelinux: { | ||
9.1: 8, | ||
|
@@ -737,6 +761,7 @@ postgresql_pgdg_releases: | |
9.4: 3, | ||
9.5: 3, | ||
9.6: 3, | ||
10: 2, | ||
} | ||
postgresql_version_terse: "{{ postgresql_version | replace('.', '') }}" | ||
postgresql_yum_repository_base_url: "http://yum.postgresql.org" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the comment about "replaced below"? I'm not sure if that matches the style of the others, which normally just list > < = and the version, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be helpful as a reminder if transitioning from 9.6 to 10.