Fix issue with applying postgresql.conf to PostgreSQL

This commit is contained in:
wbsong111
2025-01-06 11:01:31 +09:00
parent 4b898f8634
commit 6108c65b0c
2 changed files with 27 additions and 2 deletions
@@ -1,3 +1,14 @@
{{/*
Enable the PostgreSQL configuration automatically
*/}}
{{- define "postgresql-ha.configuration.postgresql.enabled" -}}
{{- if and (or .Values.postgresql.repmgrConfiguration .Values.postgresql.configuration .Values.postgresql.pgHbaConfiguration) (not .Values.postgresql.configurationCM) }}
false
{{- else }}
true
{{- end }}
{{- end }}
{{/*
Return Postgresql - memory
*/}}
@@ -58,6 +69,8 @@ wal_buffers = -1
max_wal_size = 10GB
min_wal_size = 1GB
shared_preload_libraries = '{{ .Values.postgresql.sharedPreloadLibraries }}'
shared_buffers = {{ div $memory 4 }}MB
effective_cache_size = {{ mul (div $memory 4) 3 }}MB