Skip to content

Commit 1214660

Browse files
authored
Merge pull request #162 from emiliebiscuits/feat/max-prepared-statement
Feat/max prepared statement
2 parents 4df0ebd + 1bbbd4e commit 1214660

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

charts/pgbouncer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: pgbouncer
3-
version: "0.8.1"
3+
version: "0.9.0"
44
description: A Helm chart for Pgbouncer
55
type: application
66
home: https://github.com/pmint93/helm-charts

charts/pgbouncer/templates/_pgbouncer.ini.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pool_mode = {{ .Values.settings.pool_mode | default "session" }}
173173

174174
;; Number of prepared statements to cache on a server connection (zero value
175175
;; disables support of prepared statements).
176-
;max_prepared_statements = 0
176+
max_prepared_statements = {{ .Values.extraSettings.max_prepared_statements | default 0 }}
177177

178178
;; Query for cleaning connection immediately after releasing from
179179
;; client. No need to put ROLLBACK here, pgbouncer does not reuse

charts/pgbouncer/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ settings:
4242

4343
extraSettings:
4444
ignore_startup_parameters: extra_float_digits
45+
max_prepared_statements: 0
46+
4547

4648
existingSecrets: []
4749
# - name: my-cert-secret

0 commit comments

Comments
 (0)