Created
January 6, 2010 13:21
-
-
Save EmmanuelOga/270268 to your computer and use it in GitHub Desktop.
change postgresql template1 db encoding to utf8 (unicode) by dropping it and recreating from template0
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
# change postgresql template1 db encoding to utf8 (unicode) by dropping it and recreating from template0 | |
UPDATE pg_database SET datistemplate=false WHERE datname='template1'; | |
drop database template1; | |
create database template1 with template = template0 encoding = 'UTF8'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should add