Created
September 18, 2013 12:29
-
-
Save haad/6608476 to your computer and use it in GitHub Desktop.
fix db table owner in postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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