File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1414#logging_collector
1515#log_directory
1616
17+ # Load pg_stat_statements and auto_explain for query analysis
18+ shared_preload_libraries = 'pg_stat_statements, auto_explain'
19+
20+ # Avoid running autovacuum in the "transaction ID wraparound prevention" mode
21+ autovacuum_freeze_max_age = 1000000000
22+
1723listen_addresses = '*'
1824
1925log_destination = 'stderr'
@@ -24,7 +30,9 @@ log_connections = on
2430## If you want to have more clones use a lower value.
2531shared_buffers = '1GB'
2632
27- # detect idle clones
33+ # To be able to detect idle clones, we need to log all queries.
34+ # We are going to do so with duration.
35+ # TODO: switch to "auto_explain.log_min_duration = 0" instead (set log_min_duration_statement = -1)
2836log_min_duration_statement = 0
2937log_statement = 'none'
3038log_timezone = 'Etc/UTC'
You can’t perform that action at this time.
0 commit comments