Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dR3Ut-00062R-ON for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Jun 2017 21:30:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dR3Us-0006g1-OE for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Jun 2017 21:30:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dR3Us-0006fs-Db for pgsql-bugs@postgresql.org; Fri, 30 Jun 2017 21:30:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dR3Ul-0006iB-67 for pgsql-bugs@postgresql.org; Fri, 30 Jun 2017 21:30:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5ULUSS9019969; Fri, 30 Jun 2017 17:30:28 -0400 From: Tom Lane To: zam6ak@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14724: Unable to revoke CREATE privileges on public schema In-reply-to: <20170630191820.1477.86119@wrigleys.postgresql.org> References: <20170630191820.1477.86119@wrigleys.postgresql.org> Comments: In-reply-to zam6ak@gmail.com message dated "Fri, 30 Jun 2017 19:18:20 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19967.1498858228.1@sss.pgh.pa.us> Date: Fri, 30 Jun 2017 17:30:28 -0400 Message-ID: <19968.1498858228@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org zam6ak@gmail.com writes: > -- create a test db > CREATE DATABASE test > WITH OWNER = postgres > ENCODING = 'UTF8'; > -- log in as 'postres' and do: > REVOKE CREATE ON SCHEMA public FROM public; > WARNING: no privileges could be revoked for "public" Works for me. Maybe your "postgres" isn't a superuser? I can duplicate the above if I try it with a non-superuser database owner. (And no, that is not a bug, it's just how it works. Being owner of a DB doesn't in itself give you ownership of contained objects.) regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs