Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzOsH-0000tv-7I for pgsql-docs@arkaria.postgresql.org; Tue, 03 Oct 2017 15:12:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dzOsG-0002N6-Ln for pgsql-docs@arkaria.postgresql.org; Tue, 03 Oct 2017 15:12:44 +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 1dzOrt-0001iK-Hl for pgsql-docs@postgresql.org; Tue, 03 Oct 2017 15:12:21 +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 1dzOrp-0000fr-J3 for pgsql-docs@postgresql.org; Tue, 03 Oct 2017 15:12:21 +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 v93FCDLZ012404; Tue, 3 Oct 2017 11:12:13 -0400 From: Tom Lane To: buck@dbrhino.com cc: pgsql-docs@postgresql.org Subject: Re: Document PUBLIC grants on PUBLIC schema In-reply-to: <20170930141856.28561.80812@wrigleys.postgresql.org> References: <20170930141856.28561.80812@wrigleys.postgresql.org> Comments: In-reply-to buck@dbrhino.com message dated "Sat, 30 Sep 2017 14:18:56 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12402.1507043533.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 03 Oct 2017 11:12:13 -0400 Message-ID: <12403.1507043533@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org buck@dbrhino.com writes: > The GRANT documentation, regarding the PUBLIC role, says: > > No privileges are granted to PUBLIC by default on tables, columns, s= chemas > or tablespaces. > But the PUBLIC role does receive USAGE and CREATE privileges on the PUBLIC > schema, correct? I think the documentation should point this out. The GRANT page is meant to explain what happens when you create new objects. It does not attempt to explain the privileges attached to every predefined object, and that seems like a rather impractical thing to do there. We tend to document nondefault privileges for built-in objects where those objects are described. In the case of the public schema, it's described here: https://www.postgresql.org/docs/current/static/ddl-schemas.html#DDL-SCHEMAS= -PUBLIC but since privileges for schemas haven't been mentioned at that point, the issue is taken up a little further down: https://www.postgresql.org/docs/current/static/ddl-schemas.html#DDL-SCHEMAS= -PRIV regards, tom lane --=20 Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs