Skip to content

Instantly share code, notes, and snippets.

@haad
Created September 18, 2013 12:29
Show Gist options
  • Save haad/6608476 to your computer and use it in GitHub Desktop.
Save haad/6608476 to your computer and use it in GitHub Desktop.
fix db table owner in postgres
for tbl in `psql -qAt -c "select tablename from pg_tables where schemaname = 'public';" casis_term` ; do psql -c "alter table $tbl owner to innrm" casis_term; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment