Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: pgdog
version: v0.69
version: v0.70
appVersion: "0.1.47"
16 changes: 16 additions & 0 deletions scripts/schema-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,22 @@ mirrors:
level:
type: string

# --- Query parser array ---
queryParsers:
type: array
description: Per-database query parser entries
items:
type: object
additionalProperties: false
required: ["database", "level"]
properties:
database:
type: string
level:
type: string
engine:
type: string

# --- Sharded schemas ---
shardedSchemas:
type: array
Expand Down
9 changes: 9 additions & 0 deletions templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,15 @@ data:
{{- end }}
{{- end }}

{{- range .Values.queryParsers }}
[[query_parsers]]
database = {{ .database | quote }}
level = {{ .level | quote }}
{{- if hasKey . "engine" }}
engine = {{ .engine | quote }}
{{- end }}
{{- end }}

{{- range .Values.shardedSchemas }}
[[sharded_schemas]]
database = {{ .database | quote }}
Expand Down
7 changes: 6 additions & 1 deletion test/values-pgdog-config-extras.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Covers: ban_replica_lag*, 2PC WAL persistence, resharding copy retries,
# query_log, rewrite_shard_key_updates, unique_id_*, cutover_*,
# tcp user_timeout/congestion_control, mirroring queue_length/level,
# database lb_weight/resharding_only, multi_tenant, otel.
# query_parsers table, database lb_weight/resharding_only, multi_tenant, otel.

banReplicaLag: 60_000
banReplicaLagBytes: 10_000_000
Expand Down Expand Up @@ -62,3 +62,8 @@ mirrors:
queueLength: 256
exposure: 0.5
level: dml

queryParsers:
- database: primary
level: "off"
engine: pg_query_raw
9 changes: 9 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,15 @@ users: []
# mirrors contains a list of databases to replicate traffic from/to.
mirrors: []

# queryParsers contains per-database query parser settings in pgdog.toml.
# Each entry requires: database and level; engine is optional.
# Example:
# queryParsers:
# - database: "prod"
# level: "off"
# engine: "pg_query_raw"
queryParsers: []

# shardedSchemas contains the list of sharded schema entries in pgdog.toml
# Each entry requires: database and shard; name is optional
# Example:
Expand Down
Loading