Re: Document PUBLIC grants on PUBLIC schema

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: buck(at)dbrhino(dot)com
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Document PUBLIC grants on PUBLIC schema
Date: 2017-10-03 15:12:13
Message-ID: 12403.1507043533@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

buck(at)dbrhino(dot)com writes:
> The GRANT documentation, regarding the PUBLIC role, says:

> &gt; No privileges are granted to PUBLIC by default on tables, columns, schemas
> 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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message dan d 2017-10-03 17:34:21 Re: Doc BUG and/or Change Request: Include Postgres's system columns in reserved words in docs, Chnage to previx sytem colums with 2 underscores?
Previous Message David G. Johnston 2017-10-03 14:25:43 Re: Doc BUG and/or Change Request: Include Postgres's system columns in reserved words in docs, Chnage to previx sytem colums with 2 underscores?