We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents49a9777 +a7e575b commitc015cb1Copy full SHA for c015cb1
configs/postgres/postgresql.conf
@@ -14,6 +14,12 @@
14
#logging_collector
15
#log_directory
16
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
23
listen_addresses = '*'
24
25
log_destination = 'stderr'
@@ -24,7 +30,9 @@ log_connections = on
30
## If you want to have more clones use a lower value.
31
shared_buffers = '1GB'
26
32
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)
28
36
log_min_duration_statement = 0
29
37
log_statement = 'none'
38
log_timezone = 'Etc/UTC'