I have a server with CentOS 6. I installed on it postgreSQL 9.4, but didn't tell my mate and he installed 8.4 which included in CentOS by default. So we removed (service remove postgresql) both of them and reinstalled 9.4. We are not great Linux users and ruined everything.
Now, I couldn't run - stop - restart postgres. But it was running by default. so I tried to create users. Ups. There was something like "you shouldn't be root". So couldn't create user. It's my 7th hour on forums and there was no solution, whats more is, when I tried the things at the forums everything gone much more bad. Now I cannot even create database cluster (initdb).
(I tried everything with 8.4 too. Also deleted a cpanel package about postgres by accident while trying to clean computer from all postgres packages, and couldn't find it anywhere.)
Can anyone help me on cleaning out my server.