Created
January 23, 2014 22:38
-
-
Save iwarshak/8588234 to your computer and use it in GitHub Desktop.
convert postgres db to utf8 from asii
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
# from http://www.postgresql.org/message-id/[email protected] | |
# list databases & encodings | |
# psql --list | |
vacuumdb --full --analyze --username postgres --dbname mephisto && pg_dump mephisto -Ft -v -U postgres -f tmp/mephisto.tar && dropdb mephisto --username postgres && createdb --encoding UNICODE mephisto --username postgres && pg_restore tmp/mephisto.tar | psql --dbname mephisto --username postgres && vacuumdb --full --analyze --username postgres --dbname mephisto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment