My understanding is that, in 8.1, you'd need to revoke the privileges
before being able to drop the role/user.

8.2 seems to have two additional nice commands:  "drop owned" command to
remove the objects owned by the user, and "reassign owned" to change the
ownership and give the objects to someone else. 

http://developer.postgresql.org/pgdocs/postgres/sql-drop-owned.html
http://developer.postgresql.org/pgdocs/postgres/sql-reassign-owned.html



--
  Husam 
  http://firstdba.googlepages.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Richard Ray
Sent: Tuesday, October 10, 2006 12:23 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] How to remove a superuser

I need to drop a superuser account. I get

dba=# drop role bram;
ERROR:  role "bram" cannot be dropped because some objects depend on it
DETAIL:  owner of view teacher
owner of type teacher
owner of view temp1
owner of type temp1
...

What is the preferred method.

Thanks
Richard Ray

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match
**********************************************************************
This message contains confidential information intended only for the use of the 
addressee(s) named above and may contain information that is legally 
privileged.  If you are not the addressee, or the person responsible for 
delivering it to the addressee, you are hereby notified that reading, 
disseminating, distributing or copying this message is strictly prohibited.  If 
you have received this message by mistake, please immediately notify us by 
replying to the message and delete the original message immediately thereafter.

Thank you.

                                   FADLD Tag
**********************************************************************


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to