From d63f675c691cf0bea1b63f163c4781a811aa1e4d Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Thu, 16 Apr 2026 16:51:29 +0200 Subject: [PATCH 1/2] feat: add support for regex_parser_limit --- Chart.yaml | 4 ++-- templates/config.yaml | 3 +++ test/values-full.yaml | 1 + values.yaml | 8 ++++++-- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 6e13373..439e369 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 name: pgdog -version: v0.47 -appVersion: "0.1.32" +version: v0.48 +appVersion: "0.1.37" diff --git a/templates/config.yaml b/templates/config.yaml index 00421df..278cc91 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -58,6 +58,9 @@ data: {{- if .Values.queryParserEngine }} query_parser_engine = {{ .Values.queryParserEngine | quote }} {{- end }} + {{- if .Values.regexParserLimit }} + regex_parser_limit = {{ include "pgdog.intval" .Values.regexParserLimit }} + {{- end }} {{- if .Values.preparedStatementsLimit }} prepared_statements_limit = {{ include "pgdog.intval" .Values.preparedStatementsLimit }} {{- end}} diff --git a/test/values-full.yaml b/test/values-full.yaml index 0fb806f..50fc738 100644 --- a/test/values-full.yaml +++ b/test/values-full.yaml @@ -5,6 +5,7 @@ env: - name: RUST_LOG value: trace queryParserEngine: "pg_query_raw" +regexParserLimit: 1000 # Sharding settings twoPhaseCommit: true diff --git a/values.yaml b/values.yaml index 7d33c5e..abaeba5 100644 --- a/values.yaml +++ b/values.yaml @@ -524,8 +524,8 @@ control: # memoryStackSize: 2097152 # Query parser configuration -# queryParser controls whether the query parser is enabled -# Valid values: "auto", "on", "off" +# queryParser controls whether the query parser and which features are enabled +# Valid values: "auto", "on", "off", "session_control", "session_control_and_locks" # queryParser: "auto" # queryParserEngine specifies which query parser engine to use @@ -534,6 +534,10 @@ control: # queryParserEnabled is DEPRECATED - use queryParser instead # queryParserEnabled: true +# regexParserLimit specifies the maximum number of characters in a query that the regex parser +# will inspect. Only applies when queryParser is "session_control" or "session_control_and_locks" +# regexParserLimit: 1000 + # Prometheus Collector configuration # Deploys a standalone Prometheus instance that collects metrics from all pgdog pods prometheusCollector: From ba3536eaa212d8487dfc7b88e0a32816f3b02835 Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Thu, 16 Apr 2026 17:05:15 +0200 Subject: [PATCH 2/2] add support for more properties --- templates/config.yaml | 5 +++++ test/values-full.yaml | 1 + 2 files changed, 6 insertions(+) diff --git a/templates/config.yaml b/templates/config.yaml index 278cc91..14b3f25 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -94,6 +94,9 @@ data: {{- if .Values.reshardingCopyFormat }} resharding_copy_format = {{ .Values.reshardingCopyFormat | quote }} {{- end }} + {{- if .Values.reshardingParallelCopies }} + resharding_parallel_copies = {{ include "pgdog.intval" .Values.reshardingParallelCopies }} + {{- end }} {{- if hasKey .Values "reloadSchemaOnDdl" }} reload_schema_on_ddl = {{ .Values.reloadSchemaOnDdl }} {{- end }} @@ -124,6 +127,8 @@ data: server_lifetime = {{ include "pgdog.intval" (.Values.serverLifetime | default 86400000) }} log_connections = {{ .Values.logConnections | default "true" }} log_disconnections = {{ .Values.logDisconnections | default "true" }} + log_dedup_threshold = {{ include "pgdog.intval" (.Values.logDedupThreshold | default 0) }} + log_dedup_window = {{ include "pgdog.intval" (.Values.logDedupWindow | default 0) }} {{- if .Values.statsPeriod }} stats_period = {{ include "pgdog.intval" .Values.statsPeriod }} {{- end }} diff --git a/test/values-full.yaml b/test/values-full.yaml index 50fc738..e61db3b 100644 --- a/test/values-full.yaml +++ b/test/values-full.yaml @@ -13,6 +13,7 @@ twoPhaseCommitAuto: false systemCatalogs: omnisharded_sticky omnishardedSticky: true reshardingCopyFormat: binary +reshardingParallelCopies: 1 reloadSchemaOnDdl: true memoryNetBuffer: 8192