How to fix «Error: Config owner (postgres:107) and data owner (root:0) do not match, and config owner is not root»?

Follow the instruction How to fix «Setting locale failed»?