Skip to content

Commit e119b4f

Browse files
bitnami-botBitnami Bot
andauthored
[bitnami/postgresql] Release postgresql-14.17.0-debian-12-r4 (#78907)
Signed-off-by: Bitnami Bot <bitnami-bot@vmware.com> Co-authored-by: Bitnami Bot <bitnami-bot@vmware.com>
1 parent 9897318 commit e119b4f

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

bitnami/postgresql/14/debian-12/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ ARG WITH_ALL_LOCALES="no"
1010

1111
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
1212
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
13-
org.opencontainers.image.created="2025-03-03T21:37:33Z" \
13+
org.opencontainers.image.created="2025-03-15T20:48:36Z" \
1414
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
1515
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/postgresql/README.md" \
16-
org.opencontainers.image.licenses="Apache-2.0" \
17-
org.opencontainers.image.ref.name="14.17.0-debian-12-r3" \
16+
org.opencontainers.image.ref.name="14.17.0-debian-12-r4" \
1817
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/postgresql" \
1918
org.opencontainers.image.title="postgresql" \
2019
org.opencontainers.image.vendor="Broadcom, Inc." \

bitnami/postgresql/14/debian-12/rootfs/opt/bitnami/scripts/libpostgresql.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,13 @@ postgresql_clean_from_restart() {
572572
local -r -a files=(
573573
"$POSTGRESQL_DATA_DIR"/postmaster.pid
574574
"$POSTGRESQL_DATA_DIR"/standby.signal
575-
"$POSTGRESQL_DATA_DIR"/recovery.signal
576575
)
577576

577+
# Enable recovery only when POSTGRESQL_PERFORM_RESTORE feature flag is set
578+
if ! is_boolean_yes "$POSTGRESQL_PERFORM_RESTORE" ; then
579+
files+=("$POSTGRESQL_DATA_DIR"/recovery.signal)
580+
fi
581+
578582
for file in "${files[@]}"; do
579583
if [[ -f "$file" ]]; then
580584
info "Cleaning stale $file file"

bitnami/postgresql/14/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ postgresql_env_vars=(
9595
POSTGRESQL_DEFAULT_TOAST_COMPRESSION
9696
POSTGRESQL_PASSWORD_ENCRYPTION
9797
POSTGRESQL_DEFAULT_TRANSACTION_ISOLATION
98+
POSTGRESQL_PERFORM_RESTORE
9899
POSTGRESQL_AUTOCTL_CONF_DIR
99100
POSTGRESQL_AUTOCTL_MODE
100101
POSTGRESQL_AUTOCTL_MONITOR_HOST
@@ -336,6 +337,9 @@ export POSTGRESQL_PASSWORD_ENCRYPTION="${POSTGRESQL_PASSWORD_ENCRYPTION:-}"
336337
export POSTGRESQL_DEFAULT_TRANSACTION_ISOLATION="${POSTGRESQL_DEFAULT_TRANSACTION_ISOLATION:-}"
337338
export POSTGRESQL_USE_CUSTOM_PGHBA_INITIALIZATION="no"
338339

340+
# Native recovery settings
341+
export POSTGRESQL_PERFORM_RESTORE="${POSTGRESQL_PERFORM_RESTORE:-no}"
342+
339343
# pgAutoFailover settings
340344
export POSTGRESQL_AUTOCTL_VOLUME_DIR="${POSTGRESQL_VOLUME_DIR}/pgautoctl"
341345
export POSTGRESQL_AUTOCTL_CONF_DIR="${POSTGRESQL_AUTOCTL_CONF_DIR:-${POSTGRESQL_AUTOCTL_VOLUME_DIR}/.config}"

bitnami/postgresql/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ docker-compose up -d
173173
#### Customizable environment variables
174174

175175
| Name | Description | Default Value |
176-
| ------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------ |
176+
|--------------------------------------------|--------------------------------------------------------------------------------------------------|--------------------------------------------|
177177
| `POSTGRESQL_VOLUME_DIR` | Persistence base directory | `/bitnami/postgresql` |
178178
| `POSTGRESQL_DATA_DIR` | PostgreSQL data directory | `${POSTGRESQL_VOLUME_DIR}/data` |
179179
| `POSTGRESQL_EXTRA_FLAGS` | Extra flags for PostgreSQL initialization | `nil` |
@@ -245,16 +245,16 @@ docker-compose up -d
245245
| `POSTGRESQL_DEFAULT_TOAST_COMPRESSION` | Set the postgres default compression | `nil` |
246246
| `POSTGRESQL_PASSWORD_ENCRYPTION` | Set the passwords encryption method | `nil` |
247247
| `POSTGRESQL_DEFAULT_TRANSACTION_ISOLATION` | Set transaction isolation | `nil` |
248+
| `POSTGRESQL_PERFORM_RESTORE` | Flag to skip deletion of `recovery.signal` file to enable native recovery. e.g by using `wal-g` | `no` |
248249
| `POSTGRESQL_AUTOCTL_CONF_DIR` | Path to the configuration dir for the pg_autoctl command | `${POSTGRESQL_AUTOCTL_VOLUME_DIR}/.config` |
249250
| `POSTGRESQL_AUTOCTL_MODE` | pgAutoFailover node type, valid values [monitor, postgres] | `postgres` |
250251
| `POSTGRESQL_AUTOCTL_MONITOR_HOST` | Hostname for the monitor component | `monitor` |
251252
| `POSTGRESQL_AUTOCTL_HOSTNAME` | Hostname by which postgres is reachable | `$(hostname --fqdn)` |
252-
| `POSTGRESQL_PERFORM_RESTORE` | Flag to skip deletion of `recovery.signal` file to enable native recovery. e.g by using `wal-g` | `false` |
253253

254254
#### Read-only environment variables
255255

256256
| Name | Description | Value |
257-
| -------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------- |
257+
|----------------------------------------------|-----------------------------------------------------------------|-----------------------------------------------|
258258
| `POSTGRESQL_BASE_DIR` | PostgreSQL installation directory | `/opt/bitnami/postgresql` |
259259
| `POSTGRESQL_DEFAULT_CONF_DIR` | PostgreSQL configuration directory | `$POSTGRESQL_BASE_DIR/conf.default` |
260260
| `POSTGRESQL_CONF_DIR` | PostgreSQL configuration directory | `$POSTGRESQL_BASE_DIR/conf` |
@@ -576,7 +576,7 @@ postgres=# select application_name as server, state,
576576
postgres-# sync_priority as priority, sync_state
577577
postgres-# from pg_stat_replication;
578578
| server | state | priority | sync_state |
579-
| ----------- | --------- | -------- | ---------- |
579+
|-------------|-----------|----------|------------|
580580
| walreceiver | streaming | 0 | sync |
581581
| walreceiver | streaming | 0 | async |
582582
```
@@ -804,7 +804,7 @@ docker build --build-arg EXTRA_LOCALES="es_ES.UTF-8 UTF-8" ...
804804
The Bitnami PostgreSQL container allows two different sets of environment variables. Please see the list of environment variable aliases in the next table:
805805

806806
| Environment Variable | Alias |
807-
| :----------------------------------- | :--------------------------------- |
807+
|:-------------------------------------|:-----------------------------------|
808808
| POSTGRESQL_USERNAME | POSTGRES_USER |
809809
| POSTGRESQL_DATABASE | POSTGRES_DB |
810810
| POSTGRESQL_PASSWORD | POSTGRES_PASSWORD |
@@ -835,7 +835,7 @@ alter database POSTGRES_DATABASE owner to POSTGRES_USER;
835835
It is possible to change the user that PostgreSQL will use to execute the init scripts. To do so, use the following environment variables:
836836

837837
| Environment variable | Description |
838-
| ------------------------------- | ----------------------------------------------------------------- |
838+
|---------------------------------|-------------------------------------------------------------------|
839839
| POSTGRESQL_INITSCRIPTS_USERNAME | User that will be used to execute the init scripts |
840840
| POSTGRESQL_INITSCRIPTS_PASSWORD | Password for the user specified in POSTGRESQL_INITSCRIPT_USERNAME |
841841

0 commit comments

Comments
 (0)