Re: How to remove a superuser - Mailing list pgsql-admin

From Jim C. Nasby
Subject Re: How to remove a superuser
Date
Msg-id 20061010204123.GR72517@nasby.net
Whole thread Raw
In response to How to remove a superuser  (Richard Ray <rray@mstc.state.ms.us>)
Responses Re: How to remove a superuser  (Richard Ray <rray@mstc.state.ms.us>)
List pgsql-admin
On Tue, Oct 10, 2006 at 02:22:53PM -0500, Richard Ray wrote:
> 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.

You need to reassign ownership of those objects to someone else.
--
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

pgsql-admin by date:

Previous
From: "Tomeh, Husam"
Date:
Subject: Re: How to remove a superuser
Next
From: Jim Nasby
Date:
Subject: Re: non-standard 'CREATE INDEX' problem