We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606fd8d commit 1e6ed91Copy full SHA for 1e6ed91
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -430,8 +430,8 @@ $(cat /etc/postgresql/pg_hba.conf)" > /etc/postgresql/pg_hba.conf
430
# Add the setting if not found
431
echo "max_slot_wal_keep_size = -1" >> "$TMP_CONFIG"
432
433
- # Remove db_user_namespace if upgrading from PG15 or lower
434
- if [[ "${OLD_PGVERSION%%.*}" -le 15 && "$PGVERSION" =~ ^17.* ]]; then
+ # Remove db_user_namespace if upgrading from PG15 or lower to PG16+
+ if [[ "${OLD_PGVERSION%%.*}" -le 15 && "${PGVERSION%%.*}" -ge 16 ]]; then
435
sed -i '/^db_user_namespace/d' "$TMP_CONFIG"
436
fi
437
0 commit comments