After installation on systemd enabled systems dir /run/postgres doesn't create automatically. `systemd-tmpfiles --create` must be invoked after installation. Reproducible: Always Steps to Reproduce: 1. install postgresql without reboot Actual Results: Dir /run/postgres doesn't exist Expected Results: Dir /run/postgres creates automatically and postgres starts normally after db creation.
This issue is not specific to postgres. See bug 462118
This should fix this problem: https://github.com/gentoo/gentoo/pull/280