PostgreSQLでtemplateと異なるencoding,collate,ctypeでデータベースを作成する場合、 こんな風にcreatedbで指定を行います。 $ createdb -E UTF8 -T template0 --lc-collate=ja_JP.UTF-8 --lc-ctype=ja_JP.UTF-8 testdb # su - postgres $ psql postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+----------+-----------+-------------+-------------+----------------------- postgres | postg
