Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-14746

PostgreSQL database creation command needs to specify UTF8 in the options

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 3.4.11
    • Documentation (D)
    • None
    • Zabbix 3.4.11 Documentation

      The www link https://www.zabbix.com/documentation/3.0/manual/appendix/install/db_scripts does not specify to create the PostgreSQL database as UTF8 encoding.

      The command in the documentation is 'sudo -u postgres createdb -O zabbix zabbix' which ends up creating:

      _postgres=# \l_
       _List of databases_
       _Name | Owner | Encoding | Collate | Ctype |_
      _--------------+--------------+----------+------------+------------+_
       _postgres | postgres | LATIN1 | en_AU | en_AU |_
       _template0 | postgres | LATIN1 | en_AU | en_AU |_
       _template1 | postgres | LATIN1 | en_AU | en_AU |_
       _*zabbix | zabbix | LATIN1 | en_AU| en_AU|*_
      _(4 rows)_
      

       

      The command that should be used to enforce the UTF8 encoding 'sudo -u postgres createdb -O zabbix_proxy zabbix_proxy --encoding=UTF8 --lc-ctype=en_AU.UTF8 --lc-collate=en_AU.UTF8 --template=template0' which ends up creating:

       

      _postgres=# \l_
      _List of databases_
      _Name | Owner | Encoding | Collate | Ctype |_
      _--------------+--------------+----------+------------+------------+_
      _postgres | postgres | LATIN1 | en_AU | en_AU |_
      _template0 | postgres | LATIN1 | en_AU | en_AU |_
      _template1 | postgres | LATIN1 | en_AU | en_AU |_
      _*zabbix | zabbix | UTF8 | en_AU.UTF8 | en_AU.UTF8 |*_
      _(4 rows)_
      

       

            zabbix.dev Zabbix Development Team
            james.cook000@gmail.com James Cook
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: