HHH-17539 Update PostgreSQL CI testing to 16

This commit is contained in:
Christian Beikov 2023-12-08 14:29:49 +01:00
parent 36be7524d6
commit 1a17df24da
1 changed files with 9 additions and 1 deletions

View File

@ -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"