Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dR3Ku-0005cD-Kj for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Jun 2017 21:20:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dR3Kt-0000zQ-UO for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Jun 2017 21:20:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dR3Kt-0000wl-BV for pgsql-bugs@postgresql.org; Fri, 30 Jun 2017 21:20:19 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dR3Kq-00007c-OX for pgsql-bugs@postgresql.org; Fri, 30 Jun 2017 21:20:18 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id BF4D720B39; Fri, 30 Jun 2017 17:20:15 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Fri, 30 Jun 2017 17:20:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=8N2harFIktoYXGzc33Y3wPg78q1BVDvyM59hbbrINfE=; b=iuHEFvKz 9LBIjdq3NCpsuLfdsHyvKfOo/h2OMJwK/NEokZM64tigJWUfdvXGdhvj6HoK5tgf euWVsr1O+L5GxaV65rgNngg0uU0JNEAPtubLRgwnAjZoeuEClq6dAlrLnfsXz9z+ IonsIi10Medx5FPFFFTcbvlfXb2J3rYCo8opf7Z/BQQKKWaaHx2Jr6hyVU8os0S+ Flm/rbhgSJXvCQ+Kpo9coMy08XDIxyYlOsLg66oOQUIAjxPhvraw3vMPOCeW2Pa2 bhdrrdg6GrCRAsrQ24Wu8Dh6ckeXmQf3RcG+RMhW6NS4n35nhJ+qKSWcYngEjHDT qPxCvu5SDhyQPg== X-ME-Sender: X-Sasl-enc: YiRCux3+sLyaNTHD32SFqpIcCUTUJqgy6GbNFz93jbzC 1498857615 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 6F88D7E51B; Fri, 30 Jun 2017 17:20:15 -0400 (EDT) Subject: Re: BUG #14724: Unable to revoke CREATE privileges on public schema To: "David G. Johnston" , zam6ak@gmail.com References: <20170630191820.1477.86119@wrigleys.postgresql.org> Cc: "pgsql-bugs@postgresql.org" From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <287670d7-5086-21a7-a0c6-ffced377ac2b@2ndquadrant.com> Date: Fri, 30 Jun 2017 17:20:21 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 On 6/30/17 17:14, David G. Johnston wrote: > -- 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" > > > Query returned successfully with no result in 16 msec. > > > https://www.postgresql.org/docs/9.6/static/sql-grant.html. > > "No privileges are granted to PUBLIC by default on tables, columns, > schemas or tablespaces." > > You've been correctly warned that you've attempted to revoke a privilege > that doesn't exist. The "public" schema does by default have privileges, and the above commands do work for me. Maybe there is some silly stuff going on in the template databases. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs