Skip to content

Commit 1352205

Browse files
committed
feat: pg 15 handling
1 parent 7876ed8 commit 1352205

File tree

1 file changed

+5
-0
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+5
-0
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

+5
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,11 @@ $(cat /etc/postgresql/pg_hba.conf)" > /etc/postgresql/pg_hba.conf
435435
echo "max_slot_wal_keep_size = -1" >> "$TMP_CONFIG"
436436
fi
437437

438+
# Remove db_user_namespace if upgrading from PG15
439+
if [[ "$OLD_PGVERSION" =~ ^15.* ]]; then
440+
sed -i '/^db_user_namespace/d' "$TMP_CONFIG"
441+
fi
442+
438443
chown postgres:postgres "$TMP_CONFIG"
439444

440445
UPGRADE_COMMAND=$(cat <<EOF

0 commit comments

Comments
 (0)