Skip to content

Commit c8c6ab4

Browse files
Support primary_key rewriting (#70)
Add support for the `primary_key` rewriting option. By default disable this feature using `"ignore"`
1 parent 35befd8 commit c8c6ab4

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: pgdog
3-
version: v0.41
3+
version: v0.42
44
appVersion: "0.1.26"

templates/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,5 @@ data:
269269
enabled = {{ .Values.rewrite.enabled | default "false" }}
270270
shard_key = {{ .Values.rewrite.shardKey | default "error" | quote }}
271271
split_inserts = {{ .Values.rewrite.splitInserts | default "error" | quote }}
272+
primary_key = {{ .Values.rewrite.primaryKey | default "ignore" | quote }}
272273
{{- end }}

test/values-rewrite.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ rewrite:
33
enabled: true
44
shardKey: "rewrite"
55
splitInserts: "ignore"
6+
primary_key: "rewrite"
67

78
# Basic database config for testing rewrite
89
databases:

0 commit comments

Comments
 (0)