Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REVOKE ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public FROM asd;
- REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA public FROM asd;
- -- logged in as the rds_superuser role you defined when you created your RDS instance
- CREATE ROLE change_owner LOGIN;
- GRANT asd TO change_owner;
- GRANT foo_migration TO change_owner;
- -- log out of current user and log in as `change_owner`
- REASSIGN OWNED BY asd TO foo_migration;
- -- log out of current user and log in as rds_superuser role
- DROP USER asd;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement