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
|
show 4 more comments
feedback
|
migrated from stackoverflow.com Jun 8 '11 at 13:09
This question came from our site for professional and enthusiast programmers.
|
You could configure | |||
feedback
|
|
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 | |||
|
feedback
|
|
There is always a superuser, you can't maintain your database without this role. | |||||||
feedback
|
postgrescan't be disabled. – jmz Aug 2 '10 at 17:44