From 0dab3e363bd17e04b58801842451b99a82a7acbf Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Wed, 20 May 2026 18:28:26 +0200 Subject: [PATCH] Allow setting log_min_duration_parse and log_query_sample_length --- templates/config.yaml | 6 ++++++ test/values-full.yaml | 2 ++ values.schema.json | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/templates/config.yaml b/templates/config.yaml index d50355a..cec07b4 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -71,6 +71,12 @@ data: {{- if .Values.queryParserEngine }} query_parser_engine = {{ .Values.queryParserEngine | quote }} {{- end }} + {{- if .Values.logMinDurationParse }} + log_min_duration_parse = {{ include "pgdog.intval" .Values.logMinDurationParse }} + {{- end }} + {{- if .Values.logQuerySampleLength }} + log_query_sample_length = {{ include "pgdog.intval" .Values.logQuerySampleLength }} + {{- end }} {{- if .Values.regexParserLimit }} regex_parser_limit = {{ include "pgdog.intval" .Values.regexParserLimit }} {{- end }} diff --git a/test/values-full.yaml b/test/values-full.yaml index e61db3b..9f584bb 100644 --- a/test/values-full.yaml +++ b/test/values-full.yaml @@ -6,6 +6,8 @@ env: value: trace queryParserEngine: "pg_query_raw" regexParserLimit: 1000 +logMinDurationParse: 100 +logQuerySampleLength: 1000 # Sharding settings twoPhaseCommit: true diff --git a/values.schema.json b/values.schema.json index e97dfda..93432b6 100644 --- a/values.schema.json +++ b/values.schema.json @@ -1168,6 +1168,14 @@ "type": "object", "description": "Container readiness probe configuration" }, + "logMinDurationParse": { + "type": "integer", + "minimum": 0 + }, + "logQuerySampleLength": { + "type": "integer", + "minimum": 0 + }, "regexParserLimit": { "type": "integer", "minimum": 0