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'; |