Skip to content

Instantly share code, notes, and snippets.

@kellyredding
Created December 14, 2012 23:51
Show Gist options
  • Save kellyredding/4289686 to your computer and use it in GitHub Desktop.
Save kellyredding/4289686 to your computer and use it in GitHub Desktop.
Mass-modify owner roles for an entire db in Postgres. I used this when changing a db user an app uses to access its data.
REASSIGN OWNED BY old_role [, ...] TO new_role
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment