From 1a17df24da2e1337ea8b7a342a36bf9c0e98a4f7 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Fri, 8 Dec 2023 14:29:49 +0100 Subject: [PATCH] HHH-17539 Update PostgreSQL CI testing to 16 --- docker_db.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker_db.sh b/docker_db.sh index 1bafd11d00..0c4fc16fa4 100755 --- a/docker_db.sh +++ b/docker_db.sh @@ -188,7 +188,7 @@ mariadb_11_3() { } postgresql() { - postgresql_15 + postgresql_16 } postgresql_12() { @@ -216,6 +216,13 @@ postgresql_15() { $CONTAINER_CLI exec postgres bash -c '/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && apt install postgresql-15-pgvector && psql -U hibernate_orm_test -d hibernate_orm_test -c "create extension vector;"' } +postgresql_16() { + $CONTAINER_CLI rm -f postgres || true + $CONTAINER_CLI run --name postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -p5432:5432 --tmpfs /pgtmpfs:size=131072k -d docker.io/postgis/postgis:16-3.4 \ + -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c shared_buffers=256MB -c maintenance_work_mem=256MB -c max_wal_size=1GB -c checkpoint_timeout=1d + $CONTAINER_CLI exec postgres bash -c '/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && apt install postgresql-16-pgvector && psql -U hibernate_orm_test -d hibernate_orm_test -c "create extension vector;"' +} + edb() { edb_15 } @@ -949,6 +956,7 @@ if [ -z ${1} ]; then echo -e "\toracle_23" echo -e "\toracle_21" echo -e "\tpostgresql" + echo -e "\tpostgresql_16" echo -e "\tpostgresql_15" echo -e "\tpostgresql_14" echo -e "\tpostgresql_13"