TO-DO: пользователь otrs в postgres
Далее настраиваем postgres для поддержки UTF8: https://stackoverflow.com/a/16737776/1441592
По умолчанию кластер создаётся с кодировкой SQL_ASCII (\l
), чтоб работал otrs нужно либо сделать initdb с кодировкой utf8 либо создать базу данных ручками
CREATE DATABASE otrsdb WITH ENCODING 'UTF8' TEMPLATE=template0;
An important restriction, however, is that each database's character set must be compatible with the database's LC_CTYPE (character classification) and LC_COLLATE (string sort order) locale settings.
Источник: https://www.postgresql.org/docs/9.3/multibyte.html
CREATE ROLE "otrs_db_user" Ошибка CREATE DATABASE "otrsdb"
ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template.
Если параметр -E или --encoding не задан, initdb пытается определить подходящую кодировку в зависимости от указанной или заданной по умолчанию локали.