Skip to content

Commit be24dea

Browse files
committed
chore: always apply -1 setting and bump versions
1 parent 0d53125 commit be24dea

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,7 @@ $(cat /etc/postgresql/pg_hba.conf)" > /etc/postgresql/pg_hba.conf
426426
TMP_CONFIG="/tmp/pg_upgrade/postgresql.conf"
427427
cp "$POSTGRES_CONFIG_PATH" "$TMP_CONFIG"
428428

429-
# Check if max_slot_wal_keep_size exists in the config
430-
if grep -q "max_slot_wal_keep_size" "$TMP_CONFIG"; then
431-
# Find and replace the existing setting
432-
sed -i 's/^\s*max_slot_wal_keep_size\s*=.*$/max_slot_wal_keep_size = -1/' "$TMP_CONFIG"
433-
else
434-
# Add the setting if not found
435-
echo "max_slot_wal_keep_size = -1" >> "$TMP_CONFIG"
436-
fi
429+
echo "max_slot_wal_keep_size = -1" >> "$TMP_CONFIG"
437430

438431
# Remove db_user_namespace if upgrading from PG15
439432
if [[ "$OLD_PGVERSION" =~ ^15.* && "$PGVERSION" =~ ^17.* ]]; then

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ postgres_major:
99

1010
# Full version strings for each major version
1111
postgres_release:
12-
postgresorioledb-17: "17.0.1.079-orioledb-pgupgrade-1"
13-
postgres17: "17.4.1.029-pgupgrade-1"
14-
postgres15: "15.8.1.086-pgupgrade-1"
12+
postgresorioledb-17: "17.0.1.079-orioledb-pgupgrade-2"
13+
postgres17: "17.4.1.029-pgupgrade-2"
14+
postgres15: "15.8.1.086-pgupgrade-2"
1515

1616
# Non Postgres Extensions
1717
pgbouncer_release: "1.19.0"

0 commit comments

Comments
 (0)