After I install and when restarting Postgresql I get this error. I have tried changing permissions accordingly(the owner of the all the directories and files in the error message is postgres) but to no avail. I have also completely purged and reinstalled different version of postgresql and get the same error on every install. I have tried starting as root and as postgres user.
"/var/log/postgresql/postgresql-9.2-main.log" is empty.
root@ks27059:/var/lib/postgresql/9.2# /etc/init.d/postgresql start
* Starting PostgreSQL 9.2 database server * Error:
could not exec /usr/lib/postgresql/9.2/bin/pg_ctl /usr/lib/postgresql/9.2/bin/pg_ctl start
-D /var/lib/postgresql/9.2/main -l /var/log/postgresql/postgresql-9.2-main.log -s -o -c
config_file="/etc/postgresql/9.2/main/postgresql.conf" :