Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 417C39FB30F for ; Tue, 10 Oct 2006 17:41:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 82260-04 for ; Tue, 10 Oct 2006 17:41:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id E7ACC9FB308 for ; Tue, 10 Oct 2006 17:41:25 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 851A656435; Tue, 10 Oct 2006 15:41:24 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Tue, 10 Oct 2006 15:41:23 -0500 Date: Tue, 10 Oct 2006 15:41:23 -0500 From: "Jim C. Nasby" To: Richard Ray Cc: pgsql-admin@postgresql.org Subject: Re: How to remove a superuser Message-ID: <20061010204123.GR72517@nasby.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:061010:rray@mstc.state.ms.us::G5HRVNo18fV8iw0K:0000000000000000 0000000000000000000000001roE X-Hashcash: 1:20:061010:pgsql-admin@postgresql.org::z02avf5sRhaEcdJV:00000000000 0000000000000000000000004s50 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.053 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200610/71 X-Sequence-Number: 23374 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)