Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc015cb1

Browse files
committed
Merge branch 'nik-pg-config-additions' into 'master'
feat: PG config improvementsSee merge request postgres-ai/database-lab!80
2 parents49a9777 +a7e575b commitc015cb1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎configs/postgres/postgresql.conf‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
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+
1723
listen_addresses = '*'
1824

1925
log_destination = 'stderr'
@@ -24,7 +30,9 @@ log_connections = on
2430
## If you want to have more clones use a lower value.
2531
shared_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)
2836
log_min_duration_statement = 0
2937
log_statement = 'none'
3038
log_timezone = 'Etc/UTC'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp