add pgpool extension

This commit is contained in:
Bernhard Radermacher
2026-02-25 16:27:12 +01:00
parent 528a0fbcc2
commit 232401a1ba

View File

@@ -121,6 +121,7 @@ if [[ ! -s "$PGDATA/PG_VERSION" ]]; then
fi
if [[ -n $POSTGRES_PGPOOL_USERNAME ]]; then
psql -c "CREATE USER ${POSTGRES_PGPOOL_USERNAME} WITH LOGIN ENCRYPTED PASSWORD '${POSTGRES_PGPOOL_PASSWORD}';"
psql -c "CREATE EXTENSION pgpool_recovery;" template1
fi
docker_temp_server_stop
unset PGPASSWORD