Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3qyp-0001jU-5X for pgsql-general@arkaria.postgresql.org; Fri, 08 Feb 2013 16:39:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U3qyo-0003Yb-Jm for pgsql-general@arkaria.postgresql.org; Fri, 08 Feb 2013 16:39:14 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3qym-0003XL-Dz for pgsql-general@postgresql.org; Fri, 08 Feb 2013 16:39:12 +0000 Received: from ia-in-x022d.1e100.net ([2607:f8b0:4001:c02::22d] helo=mail-ia0-x22d.google.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3qyj-00021w-S0 for pgsql-general@postgresql.org; Fri, 08 Feb 2013 16:39:12 +0000 Received: by mail-ia0-f173.google.com with SMTP id h37so4431630iak.18 for ; Fri, 08 Feb 2013 08:39:07 -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=wti0cgQb4tUDBR0LpKKQ3txlzNc1OnfLpP85peHYVpk=; b=TCxcrlZGFuTI07/KGRvxXqPGBxYscg0jiz3ww5RcvhIpxHHVJiVu+VV38ZC2uwm/j0 tvuD/xpVCPC8PrnP/j8A1kZqcrMLMUKazFNzLV33sY7UjCl2bwwvdZO3BLLYdBJpCmdT rsMvB6VkCiOJfJsXhCaZCBmVHWYfcn1PfrFsAn3CJNGKSZH1ASc9/1YqxqIYr+hBw+6e Xq3L/IGDMFX8OlPhRAqH8rqeNA9is8+KnF8dc5GuWFTY8nnEni4HSztwE49zKaJsx3Hl sbYKinIxWi9jBEpM6lFFBTLcr1f+XnpCd02UIDuciNWS6mhQmS9LlwEu0s3rUPvNG7dU o01w== X-Received: by 10.50.170.66 with SMTP id ak2mr3630535igc.38.1360341547779; Fri, 08 Feb 2013 08:39:07 -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 uj6sm15807911igb.4.2013.02.08.08.39.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Feb 2013 08:39:06 -0800 (PST) Message-ID: <51152A28.4060303@gmail.com> Date: Fri, 08 Feb 2013 08:39:04 -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: Tom Lane CC: Andreas Kretschmer , "pgsql-general@postgresql.org" Subject: Re: Bug, Feature, or what else? References: <119745304.24731.1360333559327.JavaMail.open-xchange@ox.ims-firmen.de> <51151128.8040807@gmail.com> <1568445490.24920.1360335539088.JavaMail.open-xchange@ox.ims-firmen.de> <51151764.4090405@gmail.com> <609013460.25018.1360337038276.JavaMail.open-xchange@ox.ims-firmen.de> <17143.1360340065@sss.pgh.pa.us> In-Reply-To: <17143.1360340065@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.0 (--) 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 08:14 AM, Tom Lane wrote: > Andreas Kretschmer writes: >> Adrian Klaver hat am 8. Februar 2013 um 16:19 >>> So what does \dn+ public show? > >> db115150=# \dn+ public >> List of schemas >> Name | Owner | Access privileges | Description >> --------+----------+-----------------------------+------------------------ >> public | postgres | postgres=UC/postgres +| standard public schema >> | | akretschmer01=U*C*/postgres+| >> | | ak02=UC/akretschmer01 | >> (1 row) > > Ah: this shows that you didn't tell us the whole truth to start with. > What you've actually got here is that postgres granted ALL WITH GRANT > OPTION to akretschmer01, and then akretschmer01 used the grant option > to grant rights to ak02. (I was wondering how it was that a non > superuser would be able to grant anything about schema public...) > > Only akretschmer01 can directly drop the grant to ak02. What postgres > could do is revoke the grant option to akretschmer01, and the cascaded > effect of that would remove the privileges for ak02. > > Of course, postgres has other options besides that, of which "DROP OWNED > BY ak02" is probably the most appropriate here. Or if you really want > to get rid of just that grant, SET ROLE TO akretschmer01 and revoke. The DROP OWNED was tried further up the thread and did not seem to work: " nice idea, but unfortunately no: db115150=# drop owned by ak02; DROP OWNED db115150=# drop user ak02; FEHLER: kann Rolle »ak02« nicht löschen, weil andere Objekte davon abhängen DETAIL: Privilegien für Schema public " > > regards, tom lane > > -- 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