Skip to content

Commit 1255a34

Browse files
committed
feat: include pg_stat_monitor in shared_preload_libraries
add our default settings to GUC
1 parent 37e8528 commit 1255a34

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ansible/files/postgresql_config/postgresql.conf.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ default_text_search_config = 'pg_catalog.english'
688688
#local_preload_libraries = ''
689689
#session_preload_libraries = ''
690690

691-
shared_preload_libraries = 'pg_stat_statements, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter, supabase_vault' # (change requires restart)
691+
shared_preload_libraries = 'pg_stat_statements, pg_stat_monitor, pgaudit, plpgsql, plpgsql_check, pg_cron, pg_net, pgsodium, timescaledb, auto_explain, pg_tle, plan_filter, supabase_vault, pg_stat_monitor' # (change requires restart)
692692
jit_provider = 'llvmjit' # JIT library to use
693693

694694
# - Other Defaults -
@@ -776,3 +776,5 @@ 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

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ postgres_major:
99

1010
# Full version strings for each major version
1111
postgres_release:
12-
postgresorioledb-17: "17.5.1.018-orioledb"
13-
postgres17: "17.4.1.075"
14-
postgres15: "15.8.1.132"
12+
postgresorioledb-17: "17.5.1.019-orioledb-psm-1"
13+
postgres17: "17.4.1.076-psm-1"
14+
postgres15: "15.8.1.133-psm-1"
1515

1616
# Non Postgres Extensions
1717
pgbouncer_release: "1.19.0"

0 commit comments

Comments
 (0)