# pacman -S postgresql
改YOUR_LOCAL
为你主机的语言,如en_GB.UTF-8
# sudo su - postgres -c "initdb --locale YOUR_LOCAL -E UTF8 -D '/var/lib/postgres/data'"
# systemctl start postgresql # sudo -u postgres createuser --interactive
# sudo -u postgres createdb -O db_user db_name