How does one go about disabling a super user account within postgres without deleting it. I looked at the Alter Role documentation and I am drawing blanks. In addition this is the only super user account and the subordinate accounts own the tables that they are responsible for
You could configure
pg_hba.conf
to reject the super user so it can't log in.I assume that you have created a new user with super user privileges and you don't want to disable the postgres account, right?
To disable an account try revoke:
I might have missed something in the snippet above, check out the docs here: http://www.postgresql.org/docs/8.4/static/sql-revoke.html
To remove the user, become super user yourself, ie postgres. Then use DROP ROLE:
http://www.postgresql.org/docs/8.4/interactive/sql-droprole.html
There is always a superuser, you can't maintain your database without this role.