taperole 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +1 -2
- data/Gemfile +2 -0
- data/Gemfile.lock +39 -0
- data/lib/taperole/version.rb +1 -1
- data/requirements.yml +6 -2
- data/roles/redis/meta/main.yml +3 -0
- data/roles/redis/tasks/main.yml +14 -2
- data/roles/redis/templates/rc.local.j2 +16 -0
- data/roles/redis/templates/thp_enabled.j2 +1 -0
- data/taperole.gemspec +1 -0
- data/vars/defaults.yml +9 -0
- data/vendor/ANXS.postgresql/.travis.yml +8 -6
- data/vendor/ANXS.postgresql/README.md +6 -0
- data/vendor/ANXS.postgresql/defaults/main.yml +133 -69
- data/vendor/ANXS.postgresql/meta/.galaxy_install_info +1 -1
- data/vendor/ANXS.postgresql/tasks/configure.yml +15 -5
- data/vendor/ANXS.postgresql/tasks/databases.yml +3 -3
- data/vendor/ANXS.postgresql/tasks/extensions/dev_headers.yml +11 -1
- data/vendor/ANXS.postgresql/tasks/install.yml +1 -1
- data/vendor/ANXS.postgresql/templates/postgresql.conf-9.6.j2 +635 -0
- data/vendor/ANXS.postgresql/tests/vars.yml +1 -1
- data/vendor/ansible-sysfs/.gitignore +30 -0
- data/vendor/ansible-sysfs/.travis.yml +60 -0
- data/vendor/ansible-sysfs/README.md +68 -0
- data/vendor/ansible-sysfs/Vagrantfile +63 -0
- data/vendor/ansible-sysfs/defaults/main.yml +3 -0
- data/vendor/ansible-sysfs/files/etc/init.d/sysfsutils +82 -0
- data/vendor/ansible-sysfs/handlers/main.yml +6 -0
- data/vendor/ansible-sysfs/meta/.galaxy_install_info +1 -0
- data/vendor/ansible-sysfs/meta/main.yml +21 -0
- data/vendor/ansible-sysfs/tasks/main.yml +68 -0
- data/vendor/ansible-sysfs/templates/etc/sysfs.d/sysfs.conf.j2 +6 -0
- data/vendor/ansible-sysfs/tests/inventory +1 -0
- data/vendor/ansible-sysfs/tests/test.yml +43 -0
- data/vendor/ansible-sysfs/tests/vagrant.yml +43 -0
- data/vendor/ansible-sysfs/vars/main.yml +10 -0
- metadata +37 -2
@@ -0,0 +1,635 @@
|
|
1
|
+
# {{ ansible_managed }}
|
2
|
+
# -----------------------------
|
3
|
+
# PostgreSQL configuration file
|
4
|
+
# -----------------------------
|
5
|
+
#
|
6
|
+
# This file consists of lines of the form:
|
7
|
+
#
|
8
|
+
# name = value
|
9
|
+
#
|
10
|
+
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
|
11
|
+
# "#" anywhere on a line. The complete list of parameter names and allowed
|
12
|
+
# values can be found in the PostgreSQL documentation.
|
13
|
+
#
|
14
|
+
# The commented-out settings shown in this file represent the default values.
|
15
|
+
# Re-commenting a setting is NOT sufficient to revert it to the default value;
|
16
|
+
# you need to reload the server.
|
17
|
+
#
|
18
|
+
# This file is read on server startup and when the server receives a SIGHUP
|
19
|
+
# signal. If you edit the file on a running system, you have to SIGHUP the
|
20
|
+
# server for the changes to take effect, or use "pg_ctl reload". Some
|
21
|
+
# parameters, which are marked below, require a server shutdown and restart to
|
22
|
+
# take effect.
|
23
|
+
#
|
24
|
+
# Any parameter can also be given as a command-line option to the server, e.g.,
|
25
|
+
# "postgres -c log_connections=on". Some parameters can be changed at run time
|
26
|
+
# with the "SET" SQL command.
|
27
|
+
#
|
28
|
+
# Memory units: kB = kilobytes Time units: ms = milliseconds
|
29
|
+
# MB = megabytes s = seconds
|
30
|
+
# GB = gigabytes min = minutes
|
31
|
+
# TB = terabytes h = hours
|
32
|
+
# d = days
|
33
|
+
|
34
|
+
|
35
|
+
#------------------------------------------------------------------------------
|
36
|
+
# FILE LOCATIONS
|
37
|
+
#------------------------------------------------------------------------------
|
38
|
+
|
39
|
+
# The default values of these variables are driven from the -D command-line
|
40
|
+
# option or PGDATA environment variable, represented here as ConfigDir.
|
41
|
+
|
42
|
+
data_directory = '{{postgresql_data_directory}}' # use data in another directory
|
43
|
+
# (change requires restart)
|
44
|
+
hba_file = '{{postgresql_hba_file}}' # host-based authentication file
|
45
|
+
# (change requires restart)
|
46
|
+
ident_file = '{{postgresql_ident_file}}' # ident configuration file
|
47
|
+
# (change requires restart)
|
48
|
+
|
49
|
+
# If external_pid_file is not explicitly set, no extra PID file is written.
|
50
|
+
external_pid_file = '{{postgresql_external_pid_file}}' # write an extra PID file
|
51
|
+
# (change requires restart)
|
52
|
+
|
53
|
+
|
54
|
+
#------------------------------------------------------------------------------
|
55
|
+
# CONNECTIONS AND AUTHENTICATION
|
56
|
+
#------------------------------------------------------------------------------
|
57
|
+
|
58
|
+
# - Connection Settings -
|
59
|
+
|
60
|
+
listen_addresses = '{{postgresql_listen_addresses|join(',')}}' # what IP address(es) to listen on;
|
61
|
+
# comma-separated list of addresses;
|
62
|
+
# defaults to 'localhost'; use '*' for all
|
63
|
+
# (change requires restart)
|
64
|
+
port = {{postgresql_port}} # (change requires restart)
|
65
|
+
max_connections = {{postgresql_max_connections}} # (change requires restart)
|
66
|
+
superuser_reserved_connections = {{postgresql_superuser_reserved_connections}} # (change requires restart)
|
67
|
+
unix_socket_directories = '{{postgresql_unix_socket_directories|join(',')}}' # comma-separated list of directories
|
68
|
+
# (change requires restart)
|
69
|
+
unix_socket_group = '{{postgresql_unix_socket_group}}' # (change requires restart)
|
70
|
+
unix_socket_permissions = {{postgresql_unix_socket_permissions}} # begin with 0 to use octal notation
|
71
|
+
# (change requires restart)
|
72
|
+
bonjour = {{'on' if postgresql_bonjour else 'off'}} # advertise server via Bonjour
|
73
|
+
# (change requires restart)
|
74
|
+
bonjour_name = '{{postgresql_bonjour_name}}' # defaults to the computer name
|
75
|
+
# (change requires restart)
|
76
|
+
|
77
|
+
# - Security and Authentication -
|
78
|
+
|
79
|
+
authentication_timeout = {{postgresql_authentication_timeout}} # 1s-600s
|
80
|
+
ssl = {{'on' if postgresql_ssl else 'off'}} # (change requires restart)
|
81
|
+
ssl_ciphers = '{{postgresql_ssl_ciphers|join(':')}}' # allowed SSL ciphers
|
82
|
+
# (change requires restart)
|
83
|
+
ssl_prefer_server_ciphers = {{ 'on' if postgresql_ssl_prefer_server_ciphers else 'off' }} # (change requires restart)
|
84
|
+
ssl_ecdh_curve = '{{postgresql_ssl_ecdh_curve}}' # (change requires restart)
|
85
|
+
ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
|
86
|
+
ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
|
87
|
+
ssl_ca_file = '{{postgresql_ssl_ca_file}}' # (change requires restart)
|
88
|
+
ssl_crl_file = '{{postgresql_ssl_crl_file}}' # (change requires restart)
|
89
|
+
password_encryption = {{'on' if postgresql_password_encryption else 'off'}}
|
90
|
+
db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}
|
91
|
+
row_security = {{'on' if postgresql_row_security else 'off'}}
|
92
|
+
|
93
|
+
# GSSAPI using Kerberos
|
94
|
+
krb_server_keyfile = '{{postgresql_krb_server_keyfile}}'
|
95
|
+
krb_caseins_users = {{'on' if postgresql_db_user_namespace else 'off'}}
|
96
|
+
|
97
|
+
# - TCP Keepalives -
|
98
|
+
# see "man 7 tcp" for details
|
99
|
+
|
100
|
+
tcp_keepalives_idle = {{postgresql_tcp_keepalives_idle}} # TCP_KEEPIDLE, in seconds;
|
101
|
+
# 0 selects the system default
|
102
|
+
tcp_keepalives_interval = {{postgresql_tcp_keepalives_interval}} # TCP_KEEPINTVL, in seconds;
|
103
|
+
# 0 selects the system default
|
104
|
+
tcp_keepalives_count = {{postgresql_tcp_keepalives_count}} # TCP_KEEPCNT;
|
105
|
+
# 0 selects the system default
|
106
|
+
|
107
|
+
|
108
|
+
#------------------------------------------------------------------------------
|
109
|
+
# RESOURCE USAGE (except WAL)
|
110
|
+
#------------------------------------------------------------------------------
|
111
|
+
|
112
|
+
# - Memory -
|
113
|
+
|
114
|
+
shared_buffers = {{postgresql_shared_buffers}} # min 128kB
|
115
|
+
# (change requires restart)
|
116
|
+
huge_pages = {{postgresql_huge_pages}} # on, off, or try
|
117
|
+
# (change requires restart)
|
118
|
+
temp_buffers = {{postgresql_temp_buffers}} # min 800kB
|
119
|
+
max_prepared_transactions = {{postgresql_max_prepared_transactions}} # zero disables the feature
|
120
|
+
# (change requires restart)
|
121
|
+
# Caution: It is not advisable to set max_prepared_transactions nonzero unless
|
122
|
+
# you actively intend to use prepared transactions.
|
123
|
+
work_mem = {{postgresql_work_mem}} # min 64kB
|
124
|
+
maintenance_work_mem = {{postgresql_maintenance_work_mem}} # min 1MB
|
125
|
+
replacement_sort_tuples = {{postgresql_replacement_sort_tuples}} # limits use of replacement selection sort
|
126
|
+
autovacuum_work_mem = {{postgresql_autovacuum_work_mem}} # min 1MB, or -1 to use maintenance_work_mem
|
127
|
+
max_stack_depth = {{postgresql_max_stack_depth}} # min 100kB
|
128
|
+
dynamic_shared_memory_type = {{postgresql_dynamic_shared_memory_type}} # the default is the first option
|
129
|
+
# supported by the operating system:
|
130
|
+
# posix
|
131
|
+
# sysv
|
132
|
+
# windows
|
133
|
+
# mmap
|
134
|
+
# use none to disable dynamic shared memory
|
135
|
+
|
136
|
+
# - Disk -
|
137
|
+
|
138
|
+
temp_file_limit = {{postgresql_temp_file_limit}} # limits per-process temp file space
|
139
|
+
# in kB, or -1 for no limit
|
140
|
+
|
141
|
+
# - Kernel Resource Usage -
|
142
|
+
|
143
|
+
max_files_per_process = {{postgresql_max_files_per_process}} # min 25
|
144
|
+
# (change requires restart)
|
145
|
+
shared_preload_libraries = '{{postgresql_shared_preload_libraries|join(',')}}' # (change requires restart)
|
146
|
+
|
147
|
+
# - Cost-Based Vacuum Delay -
|
148
|
+
|
149
|
+
vacuum_cost_delay = {{postgresql_vacuum_cost_delay}} # 0-100 milliseconds
|
150
|
+
vacuum_cost_page_hit = {{postgresql_vacuum_cost_page_hit}} # 0-10000 credits
|
151
|
+
vacuum_cost_page_miss = {{postgresql_vacuum_cost_page_miss}} # 0-10000 credits
|
152
|
+
vacuum_cost_page_dirty = {{postgresql_vacuum_cost_page_dirty}} # 0-10000 credits
|
153
|
+
vacuum_cost_limit = {{postgresql_vacuum_cost_limit}} # 1-10000 credits
|
154
|
+
|
155
|
+
# - Background Writer -
|
156
|
+
|
157
|
+
bgwriter_delay = {{postgresql_bgwriter_delay}} # 10-10000ms between rounds
|
158
|
+
bgwriter_lru_maxpages = {{postgresql_bgwriter_lru_maxpages}} # 0-1000 max buffers written/round
|
159
|
+
bgwriter_lru_multiplier = {{postgresql_bgwriter_lru_multiplier}} # 0-10.0 multiplier on buffers scanned/round
|
160
|
+
bgwriter_flush_after = {{postgresql_bgwriter_flush_after}} # 0 disables,
|
161
|
+
# default is 512kB on linux, 0 otherwise
|
162
|
+
|
163
|
+
# - Asynchronous Behavior -
|
164
|
+
|
165
|
+
effective_io_concurrency = {{postgresql_effective_io_concurrency}} # 1-1000; 0 disables prefetching
|
166
|
+
max_worker_processes = {{postgresql_max_worker_processes}} # (change requires restart)
|
167
|
+
max_parallel_workers_per_gather = {{postgresql_max_parallel_workers_per_gather}} # taken from max_worker_processes
|
168
|
+
old_snapshot_threshold = {{postgresql_old_snapshot_threshold}} # 1min-60d; -1 disables; 0 is immediate
|
169
|
+
# (change requires restart)
|
170
|
+
backend_flush_after = {{postgresql_backend_flush_after}} # 0 disables, default is 0
|
171
|
+
|
172
|
+
#------------------------------------------------------------------------------
|
173
|
+
# WRITE AHEAD LOG
|
174
|
+
#------------------------------------------------------------------------------
|
175
|
+
|
176
|
+
# - Settings -
|
177
|
+
|
178
|
+
wal_level = {{postgresql_wal_level}} # minimal, replica, or logical
|
179
|
+
# (change requires restart)
|
180
|
+
fsync = {{'on' if postgresql_fsync else 'off'}} # flush data to disk for crash safety
|
181
|
+
# (turning this off can cause
|
182
|
+
# unrecoverable data corruption)
|
183
|
+
synchronous_commit = {{postgresql_synchronous_commit}} # synchronization level;
|
184
|
+
# off, local, remote_write, remote_apply, or on
|
185
|
+
wal_sync_method = {{postgresql_wal_sync_method}} # the default is the first option
|
186
|
+
# supported by the operating system:
|
187
|
+
# open_datasync
|
188
|
+
# fdatasync (default on Linux)
|
189
|
+
# fsync
|
190
|
+
# fsync_writethrough
|
191
|
+
# open_sync
|
192
|
+
full_page_writes = {{'on' if postgresql_full_page_writes else 'off'}} # recover from partial page writes
|
193
|
+
wal_compression = {{ 'on' if postgresql_wal_compression else 'off' }}
|
194
|
+
wal_log_hints = {{ 'on' if postgresql_wal_log_hints else 'off' }} # also do full page writes of non-critical updates
|
195
|
+
# (change requires restart)
|
196
|
+
wal_buffers = {{postgresql_wal_buffers}} # min 32kB, -1 sets based on shared_buffers
|
197
|
+
# (change requires restart)
|
198
|
+
wal_writer_delay = {{postgresql_wal_writer_delay}} # 1-10000 milliseconds
|
199
|
+
wal_writer_flush_after = {{postgresql_wal_writer_flush_after}} # 0 disables
|
200
|
+
|
201
|
+
commit_delay = {{postgresql_commit_delay}} # range 0-100000, in microseconds
|
202
|
+
commit_siblings = {{postgresql_commit_siblings}} # range 1-1000
|
203
|
+
|
204
|
+
# - Checkpoints -
|
205
|
+
|
206
|
+
checkpoint_timeout = {{postgresql_checkpoint_timeout}} # range 30s-1d
|
207
|
+
max_wal_size = {{ postgresql_max_wal_size if postgresql_max_wal_size or '1G' }}
|
208
|
+
min_wal_size = {{ postgresql_min_wal_size if postgresql_min_wal_size or '80MB' }}
|
209
|
+
checkpoint_completion_target = {{postgresql_checkpoint_completion_target}} # checkpoint target duration, 0.0 - 1.0
|
210
|
+
checkpoint_flush_after = {{postgresql_checkpoint_flush_after}} # 0 disables,
|
211
|
+
# default is 256kB on linux, 0 otherwise
|
212
|
+
checkpoint_warning = {{postgresql_checkpoint_warning}} # 0 disables
|
213
|
+
|
214
|
+
# - Archiving -
|
215
|
+
|
216
|
+
archive_mode = {{'on' if postgresql_archive_mode else 'off'}} # enables archiving; off, on, or always
|
217
|
+
archive_command = '{{postgresql_archive_command}}' # command to use to archive a logfile segment
|
218
|
+
# placeholders: %p = path of file to archive
|
219
|
+
# %f = file name only
|
220
|
+
# e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
|
221
|
+
archive_timeout = {{postgresql_archive_timeout}} # force a logfile segment switch after this
|
222
|
+
# number of seconds; 0 disables
|
223
|
+
|
224
|
+
|
225
|
+
#------------------------------------------------------------------------------
|
226
|
+
# REPLICATION
|
227
|
+
#------------------------------------------------------------------------------
|
228
|
+
|
229
|
+
# - Sending Server(s) -
|
230
|
+
|
231
|
+
# Set these on the master and on any standby that will send replication data.
|
232
|
+
|
233
|
+
max_wal_senders = {{postgresql_max_wal_senders}} # max number of walsender processes
|
234
|
+
# (change requires restart)
|
235
|
+
wal_keep_segments = {{postgresql_wal_keep_segments}} # in logfile segments, 16MB each; 0 disables
|
236
|
+
wal_sender_timeout = {{postgresql_wal_sender_timeout}} # in milliseconds; 0 disables
|
237
|
+
|
238
|
+
max_replication_slots = {{postgresql_max_replication_slots}} # max number of replication slots
|
239
|
+
# (change requires restart)
|
240
|
+
|
241
|
+
track_commit_timestamp = {{'on' if postgresql_track_commit_timestamp else 'off' }}
|
242
|
+
|
243
|
+
# - Master Server -
|
244
|
+
|
245
|
+
# These settings are ignored on a standby server.
|
246
|
+
|
247
|
+
synchronous_standby_names = '{{postgresql_synchronous_standby_num_sync}}{% if postgresql_synchronous_standby_names != [] %} ({{postgresql_synchronous_standby_names|join(',')}}){% endif %}' # standby servers that provide sync rep
|
248
|
+
# number of sync standbys and comma-separated list of application_name
|
249
|
+
# from standby(s); '*' = all
|
250
|
+
vacuum_defer_cleanup_age = {{postgresql_vacuum_defer_cleanup_age}} # number of xacts by which cleanup is delayed
|
251
|
+
|
252
|
+
# - Standby Servers -
|
253
|
+
|
254
|
+
# These settings are ignored on a master server.
|
255
|
+
|
256
|
+
hot_standby = {{'on' if postgresql_hot_standby else 'off'}} # "on" allows queries during recovery
|
257
|
+
# (change requires restart)
|
258
|
+
max_standby_archive_delay = {{postgresql_max_standby_archive_delay}} # max delay before canceling queries
|
259
|
+
# when reading WAL from archive;
|
260
|
+
# -1 allows indefinite delay
|
261
|
+
max_standby_streaming_delay = {{postgresql_max_standby_streaming_delay}} # max delay before canceling queries
|
262
|
+
# when reading streaming WAL;
|
263
|
+
# -1 allows indefinite delay
|
264
|
+
wal_receiver_status_interval = {{postgresql_wal_receiver_status_interval}} # send replies at least this often
|
265
|
+
# 0 disables
|
266
|
+
hot_standby_feedback = {{'on' if postgresql_hot_standby_feedback or 'off'}} # send info from standby to prevent
|
267
|
+
# query conflicts
|
268
|
+
wal_receiver_timeout = {{postgresql_wal_receiver_timeout}} # time that receiver waits for
|
269
|
+
# communication from master
|
270
|
+
# in milliseconds; 0 disables
|
271
|
+
|
272
|
+
wal_retrieve_retry_interval = {{postgresql_wal_retrieve_retry_interval}}
|
273
|
+
|
274
|
+
#------------------------------------------------------------------------------
|
275
|
+
# QUERY TUNING
|
276
|
+
#------------------------------------------------------------------------------
|
277
|
+
|
278
|
+
# - Planner Method Configuration -
|
279
|
+
|
280
|
+
enable_bitmapscan = {{'on' if postgresql_enable_bitmapscan else 'off'}}
|
281
|
+
enable_hashagg = {{'on' if postgresql_enable_hashagg else 'off'}}
|
282
|
+
enable_hashjoin = {{'on' if postgresql_enable_hashjoin else 'off'}}
|
283
|
+
enable_indexscan = {{'on' if postgresql_enable_indexscan else 'off'}}
|
284
|
+
enable_indexonlyscan = {{'on' if postgresql_enable_indexonlyscan else 'off'}}
|
285
|
+
enable_material = {{'on' if postgresql_enable_material else 'off'}}
|
286
|
+
enable_mergejoin = {{'on' if postgresql_enable_mergejoin else 'off'}}
|
287
|
+
enable_nestloop = {{'on' if postgresql_enable_nestloop else 'off'}}
|
288
|
+
enable_seqscan = {{'on' if postgresql_enable_seqscan else 'off'}}
|
289
|
+
enable_sort = {{'on' if postgresql_enable_sort else 'off'}}
|
290
|
+
enable_tidscan = {{'on' if postgresql_enable_tidscan else 'off'}}
|
291
|
+
|
292
|
+
# - Planner Cost Constants -
|
293
|
+
|
294
|
+
seq_page_cost = {{postgresql_seq_page_cost}} # measured on an arbitrary scale
|
295
|
+
random_page_cost = {{postgresql_random_page_cost}} # same scale as above
|
296
|
+
cpu_tuple_cost = {{postgresql_cpu_tuple_cost}} # same scale as above
|
297
|
+
cpu_index_tuple_cost = {{postgresql_cpu_index_tuple_cost}} # same scale as above
|
298
|
+
cpu_operator_cost = {{postgresql_cpu_operator_cost}} # same scale as above
|
299
|
+
parallel_tuple_cost = {{postgresql_parallel_tuple_cost}} # same scale as above
|
300
|
+
parallel_setup_cost = {{postgresql_parallel_setup_cost}} # same scale as above
|
301
|
+
min_parallel_relation_size = {{postgresql_min_parallel_relation_size}}
|
302
|
+
effective_cache_size = {{postgresql_effective_cache_size}}
|
303
|
+
|
304
|
+
# - Genetic Query Optimizer -
|
305
|
+
|
306
|
+
geqo = {{'on' if postgresql_enable_tidscan else 'off'}}
|
307
|
+
geqo_threshold = {{postgresql_geqo_threshold}}
|
308
|
+
geqo_effort = {{postgresql_geqo_effort}} # range 1-10
|
309
|
+
geqo_pool_size = {{postgresql_geqo_pool_size}} # selects default based on effort
|
310
|
+
geqo_generations = {{postgresql_geqo_generations}} # selects default based on effort
|
311
|
+
geqo_selection_bias = {{postgresql_geqo_selection_bias}} # range 1.5-2.0
|
312
|
+
geqo_seed = {{postgresql_geqo_seed}} # range 0.0-1.0
|
313
|
+
|
314
|
+
# - Other Planner Options -
|
315
|
+
|
316
|
+
default_statistics_target = {{postgresql_default_statistics_target}} # range 1-10000
|
317
|
+
constraint_exclusion = {{postgresql_constraint_exclusion}} # on, off, or partition
|
318
|
+
cursor_tuple_fraction = {{postgresql_cursor_tuple_fraction}} # range 0.0-1.0
|
319
|
+
from_collapse_limit = {{postgresql_from_collapse_limit}}
|
320
|
+
join_collapse_limit = {{postgresql_join_collapse_limit}} # 1 disables collapsing of explicit
|
321
|
+
# JOIN clauses
|
322
|
+
force_parallel_mode = {{'on' if postgresql_force_parallel_mode else 'off'}}
|
323
|
+
|
324
|
+
|
325
|
+
#------------------------------------------------------------------------------
|
326
|
+
# ERROR REPORTING AND LOGGING
|
327
|
+
#------------------------------------------------------------------------------
|
328
|
+
|
329
|
+
# - Where to Log -
|
330
|
+
|
331
|
+
log_destination = '{{postgresql_log_destination}}' # Valid values are combinations of
|
332
|
+
# stderr, csvlog, syslog, and eventlog,
|
333
|
+
# depending on platform. csvlog
|
334
|
+
# requires logging_collector to be on.
|
335
|
+
|
336
|
+
# This is used when logging to stderr:
|
337
|
+
logging_collector = {{'on' if postgresql_logging_collector else 'off'}} # Enable capturing of stderr and csvlog
|
338
|
+
# into log files. Required to be on for
|
339
|
+
# csvlogs.
|
340
|
+
# (change requires restart)
|
341
|
+
|
342
|
+
# These are only used if logging_collector is on:
|
343
|
+
log_directory = '{{postgresql_log_directory}}' # directory where log files are written,
|
344
|
+
# can be absolute or relative to PGDATA
|
345
|
+
log_filename = '{{postgresql_log_filename}}' # log file name pattern,
|
346
|
+
# can include strftime() escapes
|
347
|
+
log_file_mode = {{postgresql_log_file_mode}} # creation mode for log files,
|
348
|
+
# begin with 0 to use octal notation
|
349
|
+
log_truncate_on_rotation = {{'on' if postgresql_log_truncate_on_rotation else 'off'}} # If on, an existing log file with the
|
350
|
+
# same name as the new log file will be
|
351
|
+
# truncated rather than appended to.
|
352
|
+
# But such truncation only occurs on
|
353
|
+
# time-driven rotation, not on restarts
|
354
|
+
# or size-driven rotation. Default is
|
355
|
+
# off, meaning append to existing files
|
356
|
+
# in all cases.
|
357
|
+
log_rotation_age = {{postgresql_log_rotation_age}} # Automatic rotation of logfiles will
|
358
|
+
# happen after that time. 0 disables.
|
359
|
+
log_rotation_size = {{postgresql_log_rotation_size}} # Automatic rotation of logfiles will
|
360
|
+
# happen after that much log output.
|
361
|
+
# 0 disables.
|
362
|
+
|
363
|
+
# These are relevant when logging to syslog:
|
364
|
+
syslog_facility = '{{postgresql_syslog_facility}}'
|
365
|
+
syslog_ident = '{{postgresql_syslog_ident}}'
|
366
|
+
syslog_sequence_numbers = {{'on' if postgresql_syslog_sequence_numbers else 'off'}}
|
367
|
+
syslog_split_messages = {{'on' if postgresql_syslog_split_messages else 'off'}}
|
368
|
+
|
369
|
+
# This is only relevant when logging to eventlog (win32):
|
370
|
+
event_source = '{{postgresql_event_source}}'
|
371
|
+
|
372
|
+
# - When to Log -
|
373
|
+
|
374
|
+
client_min_messages = {{postgresql_client_min_messages}} # values in order of decreasing detail:
|
375
|
+
# debug5
|
376
|
+
# debug4
|
377
|
+
# debug3
|
378
|
+
# debug2
|
379
|
+
# debug1
|
380
|
+
# log
|
381
|
+
# notice
|
382
|
+
# warning
|
383
|
+
# error
|
384
|
+
|
385
|
+
log_min_messages = {{postgresql_log_min_messages}} # values in order of decreasing detail:
|
386
|
+
# debug5
|
387
|
+
# debug4
|
388
|
+
# debug3
|
389
|
+
# debug2
|
390
|
+
# debug1
|
391
|
+
# info
|
392
|
+
# notice
|
393
|
+
# warning
|
394
|
+
# error
|
395
|
+
# log
|
396
|
+
# fatal
|
397
|
+
# panic
|
398
|
+
#
|
399
|
+
log_min_error_statement = {{postgresql_log_min_error_statement}} # values in order of decreasing detail:
|
400
|
+
# debug5
|
401
|
+
# debug4
|
402
|
+
# debug3
|
403
|
+
# debug2
|
404
|
+
# debug1
|
405
|
+
# info
|
406
|
+
# notice
|
407
|
+
# warning
|
408
|
+
# error
|
409
|
+
# log
|
410
|
+
# fatal
|
411
|
+
# panic (effectively off)
|
412
|
+
|
413
|
+
log_min_duration_statement = {{postgresql_log_min_duration_statement}} # -1 is disabled, 0 logs all statements
|
414
|
+
# and their durations, > 0 logs only
|
415
|
+
# statements running at least this number
|
416
|
+
# of milliseconds
|
417
|
+
|
418
|
+
|
419
|
+
# - What to Log -
|
420
|
+
|
421
|
+
debug_print_parse = {{'on' if postgresql_debug_print_parse else 'off'}}
|
422
|
+
debug_print_rewritten = {{'on' if postgresql_debug_print_rewritten else 'off'}}
|
423
|
+
debug_print_plan = {{'on' if postgresql_debug_print_plan else 'off'}}
|
424
|
+
debug_pretty_print = {{'on' if postgresql_debug_pretty_print else 'off'}}
|
425
|
+
log_checkpoints = {{'on' if postgresql_log_checkpoints else 'off'}}
|
426
|
+
log_connections = {{'on' if postgresql_log_connections else 'off'}}
|
427
|
+
log_disconnections = {{'on' if postgresql_log_disconnections else 'off'}}
|
428
|
+
log_duration = {{'on' if postgresql_log_duration else 'off'}}
|
429
|
+
log_error_verbosity = {{postgresql_log_error_verbosity}} # terse, default, or verbose messages
|
430
|
+
log_hostname = {{'on' if postgresql_log_duration else 'off'}}
|
431
|
+
log_line_prefix = '{{postgresql_log_line_prefix}}' # special values:
|
432
|
+
# %a = application name
|
433
|
+
# %u = user name
|
434
|
+
# %d = database name
|
435
|
+
# %r = remote host and port
|
436
|
+
# %h = remote host
|
437
|
+
# %p = process ID
|
438
|
+
# %t = timestamp without milliseconds
|
439
|
+
# %m = timestamp with milliseconds
|
440
|
+
# %n = timestamp with milliseconds (as a Unix epoch)
|
441
|
+
# %i = command tag
|
442
|
+
# %e = SQL state
|
443
|
+
# %c = session ID
|
444
|
+
# %l = session line number
|
445
|
+
# %s = session start timestamp
|
446
|
+
# %v = virtual transaction ID
|
447
|
+
# %x = transaction ID (0 if none)
|
448
|
+
# %q = stop here in non-session
|
449
|
+
# processes
|
450
|
+
# %% = '%'
|
451
|
+
# e.g. '<%u%%%d> '
|
452
|
+
log_lock_waits = {{'on' if postgresql_log_lock_waits else 'off'}} # log lock waits >= deadlock_timeout
|
453
|
+
log_statement = '{{postgresql_log_statement}}' # none, ddl, mod, all
|
454
|
+
log_temp_files = {{postgresql_log_temp_files}} # log temporary files equal or larger
|
455
|
+
# than the specified size in kilobytes;
|
456
|
+
# -1 disables, 0 logs all temp files
|
457
|
+
log_timezone = '{{postgresql_log_timezone}}'
|
458
|
+
|
459
|
+
|
460
|
+
#------------------------------------------------------------------------------
|
461
|
+
# RUNTIME STATISTICS
|
462
|
+
#------------------------------------------------------------------------------
|
463
|
+
|
464
|
+
# - Query/Index Statistics Collector -
|
465
|
+
|
466
|
+
track_activities = {{'on' if postgresql_track_activities else 'off'}}
|
467
|
+
track_counts = {{'on' if postgresql_track_counts else 'off'}}
|
468
|
+
track_io_timing = {{'on' if postgresql_track_io_timing else 'off'}}
|
469
|
+
track_functions = {{postgresql_track_functions}} # none, pl, all
|
470
|
+
track_activity_query_size = {{postgresql_track_activity_query_size}} # (change requires restart)
|
471
|
+
update_process_title = {{'on' if postgresql_update_process_title else 'off'}}
|
472
|
+
stats_temp_directory = '{{postgresql_stats_temp_directory}}'
|
473
|
+
|
474
|
+
|
475
|
+
# - Statistics Monitoring -
|
476
|
+
|
477
|
+
log_parser_stats = {{'on' if postgresql_log_parser_stats else 'off'}}
|
478
|
+
log_planner_stats = {{'on' if postgresql_log_planner_stats else 'off'}}
|
479
|
+
log_executor_stats = {{'on' if postgresql_log_executor_stats else 'off'}}
|
480
|
+
log_statement_stats = {{'on' if postgresql_log_statement_stats else 'off'}}
|
481
|
+
|
482
|
+
|
483
|
+
#------------------------------------------------------------------------------
|
484
|
+
# AUTOVACUUM PARAMETERS
|
485
|
+
#------------------------------------------------------------------------------
|
486
|
+
|
487
|
+
autovacuum = {{'on' if postgresql_autovacuum else 'off'}} # Enable autovacuum subprocess? 'on'
|
488
|
+
# requires track_counts to also be on.
|
489
|
+
log_autovacuum_min_duration = {{postgresql_log_autovacuum_min_duration}} # -1 disables, 0 logs all actions and
|
490
|
+
# their durations, > 0 logs only
|
491
|
+
# actions running at least this number
|
492
|
+
# of milliseconds.
|
493
|
+
autovacuum_max_workers = {{postgresql_autovacuum_max_workers}} # max number of autovacuum subprocesses
|
494
|
+
# (change requires restart)
|
495
|
+
autovacuum_naptime = {{postgresql_autovacuum_naptime}} # time between autovacuum runs
|
496
|
+
autovacuum_vacuum_threshold = {{postgresql_autovacuum_vacuum_threshold}} # min number of row updates before
|
497
|
+
# vacuum
|
498
|
+
autovacuum_analyze_threshold = {{postgresql_autovacuum_analyze_threshold}} # min number of row updates before
|
499
|
+
# analyze
|
500
|
+
autovacuum_vacuum_scale_factor = {{postgresql_autovacuum_vacuum_scale_factor}} # fraction of table size before vacuum
|
501
|
+
autovacuum_analyze_scale_factor = {{postgresql_autovacuum_analyze_scale_factor}} # fraction of table size before analyze
|
502
|
+
autovacuum_freeze_max_age = {{postgresql_autovacuum_freeze_max_age}} # maximum XID age before forced vacuum
|
503
|
+
# (change requires restart)
|
504
|
+
autovacuum_multixact_freeze_max_age = {{postgresql_autovacuum_multixact_freeze_max_age}} # maximum multixact age
|
505
|
+
# before forced vacuum
|
506
|
+
# (change requires restart)
|
507
|
+
autovacuum_vacuum_cost_delay = {{postgresql_autovacuum_vacuum_cost_delay}} # default vacuum cost delay for
|
508
|
+
# autovacuum, in milliseconds;
|
509
|
+
# -1 means use vacuum_cost_delay
|
510
|
+
autovacuum_vacuum_cost_limit = {{postgresql_autovacuum_vacuum_cost_limit}} # default vacuum cost limit for
|
511
|
+
# autovacuum, -1 means use
|
512
|
+
# vacuum_cost_limit
|
513
|
+
|
514
|
+
|
515
|
+
#------------------------------------------------------------------------------
|
516
|
+
# CLIENT CONNECTION DEFAULTS
|
517
|
+
#------------------------------------------------------------------------------
|
518
|
+
|
519
|
+
# - Statement Behavior -
|
520
|
+
|
521
|
+
search_path = '{{postgresql_search_path|join(',')}}' # schema names
|
522
|
+
default_tablespace = '{{postgresql_default_tablespace}}' # a tablespace name, '' uses the default
|
523
|
+
temp_tablespaces = '{{postgresql_temp_tablespaces|join(',')}}' # a list of tablespace names, '' uses
|
524
|
+
# only default tablespace
|
525
|
+
check_function_bodies = {{'on' if postgresql_check_function_bodies else 'off'}}
|
526
|
+
default_transaction_isolation = '{{postgresql_default_transaction_isolation}}'
|
527
|
+
default_transaction_read_only = {{'on' if postgresql_default_transaction_read_only else 'off'}}
|
528
|
+
default_transaction_deferrable = {{'on' if postgresql_default_transaction_deferrable else 'off'}}
|
529
|
+
session_replication_role = '{{postgresql_session_replication_role}}'
|
530
|
+
statement_timeout = {{postgresql_statement_timeout}} # in milliseconds, 0 is disabled
|
531
|
+
lock_timeout = {{postgresql_lock_timeout}} # in milliseconds, 0 is disabled
|
532
|
+
idle_in_transaction_session_timeout = {{postgresql_idle_in_transaction_session_timeout}} # in milliseconds, 0 is disabled
|
533
|
+
vacuum_freeze_min_age = {{postgresql_vacuum_freeze_min_age}}
|
534
|
+
vacuum_freeze_table_age = {{postgresql_vacuum_freeze_table_age}}
|
535
|
+
vacuum_multixact_freeze_min_age = {{postgresql_vacuum_multixact_freeze_min_age}}
|
536
|
+
vacuum_multixact_freeze_table_age = {{postgresql_vacuum_multixact_freeze_table_age}}
|
537
|
+
bytea_output = '{{postgresql_bytea_output}}' # hex, escape
|
538
|
+
xmlbinary = '{{postgresql_xmlbinary}}'
|
539
|
+
xmloption = '{{postgresql_xmloption}}'
|
540
|
+
|
541
|
+
# - Locale and Formatting -
|
542
|
+
|
543
|
+
datestyle = '{{postgresql_datestyle|join(',')}}'
|
544
|
+
intervalstyle = '{{postgresql_intervalstyle}}'
|
545
|
+
timezone = '{{postgresql_timezone}}'
|
546
|
+
timezone_abbreviations = '{{postgresql_timezone_abbreviations}}' # Select the set of available time zone
|
547
|
+
# abbreviations. Currently, there are
|
548
|
+
# Default
|
549
|
+
# Australia (historical usage)
|
550
|
+
# India
|
551
|
+
# You can create your own file in
|
552
|
+
# share/timezonesets/.
|
553
|
+
extra_float_digits = {{postgresql_extra_float_digits}} # min -15, max 3
|
554
|
+
{% if not postgresql_client_encoding %}
|
555
|
+
#client_encoding = sql_ascii # actually, defaults to database
|
556
|
+
{% else %}
|
557
|
+
client_encoding = {{postgresql_client_encoding}} # actually, defaults to database
|
558
|
+
{% endif %}
|
559
|
+
# encoding
|
560
|
+
|
561
|
+
# These settings are initialized by initdb, but they can be changed.
|
562
|
+
lc_messages = '{{postgresql_lc_messages}}' # locale for system error message
|
563
|
+
# strings
|
564
|
+
lc_monetary = '{{postgresql_lc_monetary}}' # locale for monetary formatting
|
565
|
+
lc_numeric = '{{postgresql_lc_numeric}}' # locale for number formatting
|
566
|
+
lc_time = '{{postgresql_lc_time}}' # locale for time formatting
|
567
|
+
|
568
|
+
# default configuration for text search
|
569
|
+
default_text_search_config = '{{postgresql_default_text_search_config}}'
|
570
|
+
|
571
|
+
# - Other Defaults -
|
572
|
+
|
573
|
+
dynamic_library_path = '{{postgresql_dynamic_library_path}}'
|
574
|
+
local_preload_libraries = '{{postgresql_local_preload_libraries|join(',')}}'
|
575
|
+
session_preload_libraries = '{{postgresql_session_preload_libraries|join(',')}}'
|
576
|
+
|
577
|
+
|
578
|
+
#------------------------------------------------------------------------------
|
579
|
+
# LOCK MANAGEMENT
|
580
|
+
#------------------------------------------------------------------------------
|
581
|
+
|
582
|
+
deadlock_timeout = {{postgresql_deadlock_timeout}}
|
583
|
+
max_locks_per_transaction = {{postgresql_max_locks_per_transaction}} # min 10
|
584
|
+
# (change requires restart)
|
585
|
+
max_pred_locks_per_transaction = {{postgresql_max_pred_locks_per_transaction}} # min 10
|
586
|
+
# (change requires restart)
|
587
|
+
|
588
|
+
|
589
|
+
#------------------------------------------------------------------------------
|
590
|
+
# VERSION/PLATFORM COMPATIBILITY
|
591
|
+
#------------------------------------------------------------------------------
|
592
|
+
|
593
|
+
# - Previous PostgreSQL Versions -
|
594
|
+
|
595
|
+
array_nulls = {{'on' if postgresql_array_nulls else 'off'}}
|
596
|
+
backslash_quote = {{postgresql_backslash_quote}} # on, off, or safe_encoding
|
597
|
+
default_with_oids = {{'on' if postgresql_default_with_oids else 'off'}}
|
598
|
+
escape_string_warning = {{'on' if postgresql_escape_string_warning else 'off'}}
|
599
|
+
lo_compat_privileges = {{'on' if postgresql_lo_compat_privileges else 'off'}}
|
600
|
+
quote_all_identifiers = {{'on' if postgresql_quote_all_identifiers else 'off'}}
|
601
|
+
sql_inheritance = {{'on' if postgresql_sql_inheritance else 'off'}}
|
602
|
+
standard_conforming_strings = {{'on' if postgresql_standard_conforming_strings else 'off'}}
|
603
|
+
synchronize_seqscans = {{'on' if postgresql_synchronize_seqscans else 'off'}}
|
604
|
+
|
605
|
+
# - Other Platforms and Clients -
|
606
|
+
|
607
|
+
transform_null_equals = {{'on' if postgresql_transform_null_equals else 'off'}}
|
608
|
+
|
609
|
+
|
610
|
+
#------------------------------------------------------------------------------
|
611
|
+
# ERROR HANDLING
|
612
|
+
#------------------------------------------------------------------------------
|
613
|
+
|
614
|
+
exit_on_error = {{'on' if postgresql_exit_on_error else 'off'}} # terminate session on any error?
|
615
|
+
restart_after_crash = {{'on' if postgresql_restart_after_crash else 'off'}} # reinitialize after backend crash?
|
616
|
+
|
617
|
+
|
618
|
+
#------------------------------------------------------------------------------
|
619
|
+
# CONFIG FILE INCLUDES
|
620
|
+
#------------------------------------------------------------------------------
|
621
|
+
|
622
|
+
# These options allow settings to be loaded from files other than the
|
623
|
+
# default postgresql.conf.
|
624
|
+
|
625
|
+
include_dir = 'conf.d' # include files ending in '.conf' from
|
626
|
+
# directory 'conf.d'
|
627
|
+
#include_if_exists = 'exists.conf' # include file only if it exists
|
628
|
+
#include = 'special.conf' # include file
|
629
|
+
|
630
|
+
|
631
|
+
#------------------------------------------------------------------------------
|
632
|
+
# CUSTOMIZED OPTIONS
|
633
|
+
#------------------------------------------------------------------------------
|
634
|
+
|
635
|
+
# Add settings for extensions here
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# OS generated files #
|
2
|
+
######################
|
3
|
+
.DS_Store
|
4
|
+
.DS_Store?
|
5
|
+
._*
|
6
|
+
.Spotlight-V100
|
7
|
+
.Trashes
|
8
|
+
Icon?
|
9
|
+
ehthumbs.db
|
10
|
+
Thumbs.db
|
11
|
+
|
12
|
+
# IDE files #
|
13
|
+
#################
|
14
|
+
/.settings
|
15
|
+
/.buildpath
|
16
|
+
/.project
|
17
|
+
/nbproject
|
18
|
+
*.komodoproject
|
19
|
+
*.kpf
|
20
|
+
/.idea
|
21
|
+
|
22
|
+
# Vagrant files #
|
23
|
+
.virtualbox/
|
24
|
+
.vagrant/
|
25
|
+
vagrant_ansible_inventory_*
|
26
|
+
ansible.cfg
|
27
|
+
|
28
|
+
# Other files #
|
29
|
+
###############
|
30
|
+
!empty
|