Re: How to remove a superuser

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: Richard Ray <rray(at)mstc(dot)state(dot)ms(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to remove a superuser
Date: 2006-10-10 20:41:23
Message-ID: 20061010204123.GR72517@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jim Nasby 2006-10-10 20:44:00 Re: non-standard 'CREATE INDEX' problem
Previous Message Tomeh, Husam 2006-10-10 20:39:55 Re: How to remove a superuser