Created
July 18, 2019 14:49
-
-
Save samcre/dfeb5146e7b4f71a9c92fb176f079e2b to your computer and use it in GitHub Desktop.
PostgreSQL dumps without owner and ACLs
This file contains 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
# Source: https://serverfault.com/questions/228170/export-and-import-a-postgresql-database-with-a-different-name | |
pg_dump --no-owner --no-acl blah > blah.psql | |
psql blah_devel < blah.psql > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment