Synapse fail to install

can you try to restart postgre and check again

systemctl restart postgresql
ls -la /var/run/postgresql