I've installed postgresql by pacman. Now I'm trying to run it:
$ sudo systemctl start postgresql
Job for postgresql.service failed because the control process exited with error code.
See "systemctl status postgresql.service" and "journalctl -xe" for details.
And then:
$ sudo systemctl status postgresql
● postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2016-07-10 15:30:47 UTC; 17s ago
Process: 19468 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}/data (code=exited, status=1/FAILURE)
Jul 10 15:30:47 my_comp systemd[1]: Starting PostgreSQL database server...
Jul 10 15:30:47 my_comp systemd[1]: postgresql.service: Control process exited, code=exited status=1
Jul 10 15:30:47 my_comp systemd[1]: Failed to start PostgreSQL database server.
Jul 10 15:30:47 my_comp systemd[1]: postgresql.service: Unit entered failed state.
Jul 10 15:30:47 my_comp systemd[1]: postgresql.service: Failed with result 'exit-code'.
What's wrong with it?