Forked from EmmanuelOga/pgsql_change_template_1.sql
Created
February 22, 2010 09:08
-
-
Save edouard/310952 to your computer and use it in GitHub Desktop.
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'; | |
UPDATE pg_database SET datistemplate=true WHERE datname='template1'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment