diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index ab774fd..21ababb 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 3.12.0 +version: 3.12.1 description: Chart for cloudnative-pg cluster keywords: - database diff --git a/charts/postgres-cluster/templates/_bootstrap.tpl b/charts/postgres-cluster/templates/_bootstrap.tpl index 6378a54..2c8e0da 100644 --- a/charts/postgres-cluster/templates/_bootstrap.tpl +++ b/charts/postgres-cluster/templates/_bootstrap.tpl @@ -7,6 +7,9 @@ bootstrap: {{- . | toYaml | nindent 4 }} {{- end }} {{- end }} + {{- if eq .Values.type "tensorchord" }} + dataChecksums: true + {{- end }} {{- if or (eq .Values.type "postgis") (eq .Values.type "timescaledb") (eq .Values.type "tensorchord") (.Values.cluster.initdb.postInitApplicationSQL) }} postInitApplicationSQL: {{- if eq .Values.type "postgis" }} @@ -17,10 +20,14 @@ bootstrap: {{- else if eq .Values.type "timescaledb" }} - CREATE EXTENSION IF NOT EXISTS timescaledb; {{- else if eq .Values.type "tensorchord" }} - - CREATE EXTENSION IF NOT EXISTS "vector"; + - ALTER SYSTEM SET search_path TO "$user", public, vectors; + - SET search_path TO "$user", public, vectors; - CREATE EXTENSION IF NOT EXISTS "vectors"; - CREATE EXTENSION IF NOT EXISTS "cube"; - CREATE EXTENSION IF NOT EXISTS "earthdistance"; + - ALTER SCHEMA vectors OWNER TO "app"; + - GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA vectors TO "app"; + - GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "app"; {{- end }} {{- with .Values.cluster.initdb }} {{- range .postInitApplicationSQL }} diff --git a/charts/postgres-cluster/templates/cluster.yaml b/charts/postgres-cluster/templates/cluster.yaml index e6c7641..adea04d 100644 --- a/charts/postgres-cluster/templates/cluster.yaml +++ b/charts/postgres-cluster/templates/cluster.yaml @@ -46,6 +46,7 @@ spec: {{- if eq .Values.type "tensorchord" }} shared_preload_libraries: - vectors.so + enableAlterSystem: true {{- end }} {{- with .Values.cluster.postgresql.shared_preload_libraries }} shared_preload_libraries: