pub fn remove_superuser_from_globals(path: &str) -> Result<()>Expand description
Comments out ALTER ROLE ... SUPERUSER statements in a globals dump file.
Managed Postgres services (e.g., AWS RDS) often prevent the restore user from granting SUPERUSER. Commenting out those lines keeps the restore moving without permission errors.