Fix issue with applying postgresql.conf to PostgreSQL
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user