Skip to content

Commit 53df9b6

Browse files
committed
feat: adj pg_stat_monitor defaults
1 parent fdc744c commit 53df9b6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ansible/files/postgresql_config/postgresql.conf.j2

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,5 +776,9 @@ include = '/etc/postgresql-custom/read-replica.conf'
776776
# Add settings for extensions here
777777
auto_explain.log_min_duration = 10s
778778
cron.database_name = 'postgres'
779-
pg_stat_monitor.pgsm_bucket_time = 300
780-
pg_stat_monitor.pgsm_max_buckets = 2016
779+
pg_stat_monitor.pgsm_max = 256
780+
pg_stat_monitor.pgsm_query_shared_buffer = 20
781+
pg_stat_monitor.pgsm_bucket_time = 3600
782+
pg_stat_monitor.pgsm_max_buckets = 12
783+
pg_stat_monitor.pgsm_enable_overflow = false
784+
pg_stat_monitor.pgsm_query_max_len = 1024

0 commit comments

Comments
 (0)