for tbl in`psql -qAt-c"select tablename from pg_tables where schemaname = 'public';"{{db_name}}` ; do psql -c"alter table $tbl owner to {{user_name}}"{{db_name}} ; done
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!