Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3pJX-0001Kk-Gv for pgsql-general@arkaria.postgresql.org; Fri, 08 Feb 2013 14:52:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U3pJX-0003vB-0d for pgsql-general@arkaria.postgresql.org; Fri, 08 Feb 2013 14:52:31 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3pJV-0003tw-8L for pgsql-general@postgresql.org; Fri, 08 Feb 2013 14:52:29 +0000 Received: from mail-ia0-f171.google.com ([209.85.210.171]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3pJU-00029t-1D for pgsql-general@postgresql.org; Fri, 08 Feb 2013 14:52:28 +0000 Received: by mail-ia0-f171.google.com with SMTP id z13so4263423iaz.16 for ; Fri, 08 Feb 2013 06:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=KTCNQqC7nFBK0VEtI12m9UFE+hwR8n6Z1zanKy4Wi30=; b=dR5zXJ3Lnl6DW5i/l+JYYK/+JFKxWJT2fQzYvBSF92rR99Z0/BU3oXTP5M5U1s3bdK 5qij5RQgByeSBgJaerpwWw+efAVKjZES1Cz0idZ+2JytRI4NADHjMNbzelTCJw9paFkf nKQwpCzKwldOCT/n1ev415Nol1TCrtRshGu+XpGic0SzlqOxmYdC3iVi4+MWeiEp/3HS LMLFU2JPjDALUbK8seC0tb+2eNHXok0FboH6Kc9sg0QgX34qogMOdg4DWpk7JXltlE6X 6rDzOGPm+00cVaMoJmuxzycyOvBFi7XBdV/hGAT3E6MOZpgCmUEU4lBaPB42DQbmrAdn YabA== X-Received: by 10.50.88.233 with SMTP id bj9mr2841733igb.55.1360335146907; Fri, 08 Feb 2013 06:52:26 -0800 (PST) Received: from [192.168.0.2] (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id vq4sm14368148igb.10.2013.02.08.06.52.25 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Feb 2013 06:52:26 -0800 (PST) Message-ID: <51151128.8040807@gmail.com> Date: Fri, 08 Feb 2013 06:52:24 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Andreas Kretschmer CC: "pgsql-general@postgresql.org" Subject: Re: Bug, Feature, or what else? References: <119745304.24731.1360333559327.JavaMail.open-xchange@ox.ims-firmen.de> In-Reply-To: <119745304.24731.1360333559327.JavaMail.open-xchange@ox.ims-firmen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 02/08/2013 06:25 AM, Andreas Kretschmer wrote: > Hi, > > i have created a normal user (no superuser) akretschmer01 and another normal > user ak02. All fine. > The first user is the owner of the db. > > > As user akretschmer01 i granted: > > -bash-4.1$ psql -U akretschmer01 db115150 > psql (9.1.8) > Type "help" for help. > > db115150=> grant all on schema public to ak02; > GRANT > db115150=> commit; > > There are no tables or other objects createt as user ak02. > > > Now i switched to user postgres (superuser): > > > -bash-4.1$ psql -U postgres db115150 > psql (9.1.8) > Type "help" for help. > > db115150=# drop user ak02 > db115150-# ; > FEHLER: kann Rolle »ak02« nicht löschen, weil andere Objekte davon abhängen > DETAIL: Privilegien für Schema public > > (role ak02 cannot be dropped because some objects depend on it, Detail: > privileges for schema public) > > I can revoke all on database from user: > > db115150=# revoke all on database db115150 from ak02; > REVOKE > db115150=# drop user ak02; > FEHLER: kann Rolle »ak02« nicht löschen, weil andere Objekte davon abhängen > DETAIL: Privilegien für Schema public > > > but still i can't drop the user. > > > I can do that with 9.1.8 and 9.1.1 too, same problem. > > > How can i drop a user as SUPERUSER (!) with all privileges? I believe you will need to REVOKE ALL ON SCHEMA public FROM ak02. REVOKE ALL ON DATABASE does not mean revoke all privileges for all objects in the database. It only applies to DATABASE privileges-CONNECT, CREATE, TEMP > > > > Regards, Andreas > > -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general