I have a complete curious situation with a postgres dbms. I have installed the database and due to a misconfiguration of my installation scripts I made the superuser role to be a regular user. Now I have a completeley fresh installation of postgres with only the template database and a single user 'postgres' that can do pretty much nothing. How can I make postgres user superuser again?
I tried to reinstall the server under ubuntu 12.04 with aptitude reinstall postgresql-9.1
but the role seems to be unaffected. Most probably because the reinstallation does not affect the files where the roles are recorded.
postgresql-common
does not help either :(apt-get --purge remove postgresql-9.1
to drop the config files. After the reinstallation the postgres became superuser again. I wonder which config option makes the postgres user to be a superuser