Created
February 1, 2016 18:24
-
-
Save sebastianwebber/37532c12542c208fd862 to your computer and use it in GitHub Desktop.
SELECT to generate new table owner in PostgreSQL
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
| SELECT | |
| 'ALTER TABLE ' || | |
| schemaname || '.' || relname || | |
| ' OWNER TO novo_user;' | |
| FROM pg_stat_user_tables; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment