If you have installed latest version of PostgreSQL and getting issue then you can easily revert tots previous version to make it working. You can run below commands:
Code:
service postgresql stop
mv /var/lib/pgsql /var/lib/directory_file_name
mv /var/lib/pgsql.old /var/lib/pgsql
service postgresql restart