Skip to content

Commit 1e6ed91

Browse files
committed
feat: handle range of 16 or greater for destination of upgrade
1 parent 606fd8d commit 1e6ed91

File tree

1 file changed

+2
-2
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+2
-2
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ $(cat /etc/postgresql/pg_hba.conf)" > /etc/postgresql/pg_hba.conf
430430
# Add the setting if not found
431431
echo "max_slot_wal_keep_size = -1" >> "$TMP_CONFIG"
432432

433-
# Remove db_user_namespace if upgrading from PG15 or lower
434-
if [[ "${OLD_PGVERSION%%.*}" -le 15 && "$PGVERSION" =~ ^17.* ]]; then
433+
# Remove db_user_namespace if upgrading from PG15 or lower to PG16+
434+
if [[ "${OLD_PGVERSION%%.*}" -le 15 && "${PGVERSION%%.*}" -ge 16 ]]; then
435435
sed -i '/^db_user_namespace/d' "$TMP_CONFIG"
436436
fi
437437

0 commit comments

Comments
 (0)