Skip to content

Commit 42d8473

Browse files
committed
support postgresql 15
1 parent 886d6ad commit 42d8473

File tree

6 files changed

+21
-7
lines changed

6 files changed

+21
-7
lines changed

image/exporter/generate_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build_image()
1717
fi
1818

1919
echo "build docker image $image ..."
20-
docker buildx build --no-cache -t $image --platform $platform .
20+
docker builder build --no-cache -t $image --platform $platform .
2121
}
2222

2323
image=$(jq -r '.image' versions.json)

image/postgres-operator/generate_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ build_image()
2020
cp -r ../../platforms/kubernetes/postgres-operator/postgres .
2121

2222
echo "build docker image $image ..."
23-
docker buildx build --no-cache -t $image --platform $platform .
23+
docker builder build --no-cache -t $image --platform $platform .
2424
}
2525

2626
image=$(jq -r '.image' versions.json)

image/postgresql/generate_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ build_image()
4545

4646
cd "$dir"
4747
echo "build docker image $image ..."
48-
docker buildx build --no-cache -t $image --platform $pf .
48+
docker builder build --no-cache -t $image --platform $pf .
4949
cd -
5050
}
5151

pgversions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,19 @@
4040
"aarch64",
4141
"x86_64"
4242
]
43+
},
44+
"15": {
45+
"major": 15,
46+
"minor": [0],
47+
"debian": "bullseye-slim",
48+
"tag": ["REL_15_0"],
49+
"failover": "v2.0",
50+
"dirtyread": "2.4",
51+
"name": "radondb-postgresql",
52+
"version": "v1.0.0",
53+
"arches": [
54+
"aarch64",
55+
"x86_64"
56+
]
4357
}
4458
}

platforms/kubernetes/postgres-operator/deploy/postgresql.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
podspec:
4949
terminationGracePeriodSeconds: 60
5050
containers:
51-
- image: radondb-postgresql:12.12-v1.0.0
51+
- image: radondb-postgresql:15.0-v1.0.0
5252
imagePullPolicy: IfNotPresent
5353
name: postgresql #can't change the name
5454
volumeMounts:
@@ -93,7 +93,7 @@ spec:
9393
podspec:
9494
terminationGracePeriodSeconds: 60
9595
containers:
96-
- image: radondb-postgresql:12.12-v1.0.0
96+
- image: radondb-postgresql:15.0-v1.0.0
9797
imagePullPolicy: IfNotPresent
9898
name: postgresql #can't change the name
9999
volumeMounts:
@@ -124,7 +124,7 @@ spec:
124124
podspec:
125125
terminationGracePeriodSeconds: 60
126126
containers:
127-
- image: radondb-postgresql:12.12-v1.0.0
127+
- image: radondb-postgresql:15.0-v1.0.0
128128
imagePullPolicy: IfNotPresent
129129
name: postgresql #can't change the name
130130
volumeMounts:

platforms/kubernetes/postgres-operator/postgres/handle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ def create_log_table(logger: logging.Logger, conn: InstanceConnection,
13741374
backend_type text
13751375
) server pg_file_server options(filename '%s',format 'csv',header 'true') """ % (
13761376
table_name, log_filepath)
1377-
elif postgresql_major_version == 14:
1377+
elif postgresql_major_version == 14 or postgresql_major_version == 15:
13781378
query = """ CREATE foreign TABLE %s
13791379
(
13801380
log_time timestamp(3),

0 commit comments

Comments
 (0)