Skip to content

Commit

Permalink
HHH-17539 Update PostgreSQL CI testing to 16
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Dec 8, 2023
1 parent 36be752 commit 1a17df2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ mariadb_11_3() {
}

postgresql() {
postgresql_15
postgresql_16
}

postgresql_12() {
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 1a17df2

Please sign in to comment.