diff --git a/bitnami/postgresql/9.6/debian-10/Dockerfile b/bitnami/postgresql/9.6/debian-10/Dockerfile index e7eedc7c21bd..7c753a4f6a73 100644 --- a/bitnami/postgresql/9.6/debian-10/Dockerfile +++ b/bitnami/postgresql/9.6/debian-10/Dockerfile @@ -22,7 +22,7 @@ COPY rootfs / RUN /opt/bitnami/scripts/postgresql/postunpack.sh RUN /opt/bitnami/scripts/locales/add-extra-locales.sh ENV BITNAMI_APP_NAME="postgresql" \ - BITNAMI_IMAGE_VERSION="9.6.22-debian-10-r50" \ + BITNAMI_IMAGE_VERSION="9.6.22-debian-10-r51" \ LANG="en_US.UTF-8" \ LANGUAGE="en_US:en" \ NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \ diff --git a/bitnami/postgresql/9.6/debian-10/prebuildfs/opt/bitnami/scripts/libos.sh b/bitnami/postgresql/9.6/debian-10/prebuildfs/opt/bitnami/scripts/libos.sh index 04be9688d448..a8323db72d93 100644 --- a/bitnami/postgresql/9.6/debian-10/prebuildfs/opt/bitnami/scripts/libos.sh +++ b/bitnami/postgresql/9.6/debian-10/prebuildfs/opt/bitnami/scripts/libos.sh @@ -345,8 +345,8 @@ generate_random_string() { # md5 hash - string ######################### generate_md5_hash() { - local -r str="${1:?missing input string}" - echo -n "$str" | md5sum | awk '{print $1}' + local -r str="${1:?missing input string}" + echo -n "$str" | md5sum | awk '{print $1}' } ######################## diff --git a/bitnami/postgresql/9.6/debian-10/rootfs/opt/bitnami/scripts/libpostgresql.sh b/bitnami/postgresql/9.6/debian-10/rootfs/opt/bitnami/scripts/libpostgresql.sh index d600b7d7fe57..b3d04f9369ba 100644 --- a/bitnami/postgresql/9.6/debian-10/rootfs/opt/bitnami/scripts/libpostgresql.sh +++ b/bitnami/postgresql/9.6/debian-10/rootfs/opt/bitnami/scripts/libpostgresql.sh @@ -367,7 +367,7 @@ postgresql_create_replication_user() { postgresql_configure_replication_parameters() { local -r psql_major_version="$(postgresql_get_major_version)" info "Configuring replication parameters" - postgresql_set_property "wal_level" "hot_standby" + postgresql_set_property "wal_level" "$POSTGRESQL_WAL_LEVEL" postgresql_set_property "max_wal_size" "400MB" postgresql_set_property "max_wal_senders" "16" if ((psql_major_version >= 13)); then diff --git a/bitnami/postgresql/9.6/debian-10/rootfs/opt/bitnami/scripts/postgresql-env.sh b/bitnami/postgresql/9.6/debian-10/rootfs/opt/bitnami/scripts/postgresql-env.sh index 8654643ef832..c3d3d8c19930 100644 --- a/bitnami/postgresql/9.6/debian-10/rootfs/opt/bitnami/scripts/postgresql-env.sh +++ b/bitnami/postgresql/9.6/debian-10/rootfs/opt/bitnami/scripts/postgresql-env.sh @@ -82,6 +82,7 @@ postgresql_env_vars=( POSTGRESQL_PGHBA_REMOVE_FILTERS POSTGRESQL_USERNAME_CONNECTION_LIMIT POSTGRESQL_POSTGRES_CONNECTION_LIMIT + POSTGRESQL_WAL_LEVEL POSTGRESQL_AUTOCTL_CONF_DIR POSTGRESQL_AUTOCTL_MODE POSTGRESQL_AUTOCTL_MONITOR_HOST @@ -307,6 +308,7 @@ POSTGRESQL_USERNAME_CONNECTION_LIMIT="${POSTGRESQL_USERNAME_CONNECTION_LIMIT:-"$ export POSTGRESQL_USERNAME_CONNECTION_LIMIT="${POSTGRESQL_USERNAME_CONNECTION_LIMIT:-}" POSTGRESQL_POSTGRES_CONNECTION_LIMIT="${POSTGRESQL_POSTGRES_CONNECTION_LIMIT:-"${POSTGRES_POSTGRES_CONNECTION_LIMIT:-}"}" export POSTGRESQL_POSTGRES_CONNECTION_LIMIT="${POSTGRESQL_POSTGRES_CONNECTION_LIMIT:-}" +export POSTGRESQL_WAL_LEVEL="${POSTGRESQL_WAL_LEVEL:-replica}" # pgAutoFailover settings export POSTGRESQL_AUTOCTL_VOLUME_DIR="${POSTGRESQL_VOLUME_DIR}/pgautoctl" diff --git a/bitnami/postgresql/README.md b/bitnami/postgresql/README.md index 815c5dc9ee6d..7f09d28677d6 100644 --- a/bitnami/postgresql/README.md +++ b/bitnami/postgresql/README.md @@ -48,7 +48,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t * [`12`, `12-debian-10`, `12.7.0`, `12.7.0-debian-10-r51` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/12.7.0-debian-10-r51/12/debian-10/Dockerfile) * [`11`, `11-debian-10`, `11.12.0`, `11.12.0-debian-10-r53`, `latest` (11/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.12.0-debian-10-r53/11/debian-10/Dockerfile) * [`10`, `10-debian-10`, `10.17.0`, `10.17.0-debian-10-r55` (10/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/10.17.0-debian-10-r55/10/debian-10/Dockerfile) -* [`9.6`, `9.6-debian-10`, `9.6.22`, `9.6.22-debian-10-r50` (9.6/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/9.6.22-debian-10-r50/9.6/debian-10/Dockerfile) +* [`9.6`, `9.6-debian-10`, `9.6.22`, `9.6.22-debian-10-r51` (9.6/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/9.6.22-debian-10-r51/9.6/debian-10/Dockerfile) Subscribe to project updates by watching the [bitnami/postgresql GitHub repo](https://github.com/bitnami/bitnami-docker-postgresql).