Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 623D463292A for ; Mon, 23 Aug 2010 19:22:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 15863-05 for ; Mon, 23 Aug 2010 22:22:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (unknown [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id AD687632843 for ; Mon, 23 Aug 2010 19:22:45 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id DCFE8348034; Mon, 23 Aug 2010 15:22:23 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m+mB8cEjoOsX; Mon, 23 Aug 2010 15:22:21 -0700 (PDT) Received: from perhan.alvh.no-ip.org (200-85-200-241.bk3-dsl.surnet.cl [200.85.200.241]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 1508C348002; Mon, 23 Aug 2010 15:22:21 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8E16C6E510; Mon, 23 Aug 2010 18:22:18 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-admin Subject: Re: Unable to drop role From: Alvaro Herrera To: "McGehee, Robert" In-reply-to: References: Date: Mon, 23 Aug 2010 18:22:18 -0400 Message-Id: <1282602055-sup-6731@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201008/158 X-Sequence-Number: 35407 Excerpts from McGehee, Robert's message of lun ago 23 13:29:47 -0400 2010: > PostgreSQL developers, > I am unable to drop a role with presumably no object dependencies or > connection access on my PostgreSQL 8.4.2 installation (64-bit OSX). Any > help would be greatly appreciated as I've spent way too much time trying > to execute a simple command. > > > template1=# DROP ROLE a485099; > ERROR: role "a485099" cannot be dropped because some objects depend on > it > DETAIL: access to database template1 So what does \l say about template1? > template1=# REASSIGN OWNED BY a485099 TO postgres; > template1=# DROP OWNED BY a485099; IIRC neither REASSIGN OWNED nor DROP OWNED do anything about access to databases. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support