Omission in GRANT documentation
Laurenz Albe <laurenz.albe@cybertec.at>
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: pgsql-hackers@postgresql.org
Date: 2017-10-10T07:34:55Z
Lists: pgsql-hackers
Attachments
- 0001-Fix-documentation-of-default-privileges-for-types.patch (text/x-patch) patch 0001
grant.sgml says that
the default privileges granted to PUBLIC are as follows: CONNECT and
CREATE TEMP TABLE for databases; EXECUTE privilege for functions;
and USAGE privilege for languages.
But types also have the USAGE privilege for PUBLIC by default:
test=> CREATE TYPE bug_status AS ENUM ('new', 'open', 'closed');
CREATE TYPE
test=> GRANT USAGE ON TYPE bug_status TO duff;
GRANT
test=> REVOKE USAGE ON TYPE bug_status FROM duff;
REVOKE
test=> \dT+ bug_status
List of data types
Schema | Name | ... | Owner | Access privileges | ...
--------+------------+-----+---------+-------------------+-----
public | bug_status | | laurenz | =U/laurenz +|
| | | | laurenz=U/laurenz |
(1 row)
Hence I propose the attached documentation patch.
Yours,
Laurenz Albe
Commits
-
Doc: fix missing explanation of default object privileges.
- fbac00a4a8d3 10.1 landed
- 28605968322b 11.0 landed
- bc639d488515 9.2.24 landed
- f7126b4d6524 9.3.20 landed
- 264b00fca7f0 9.4.15 landed
- 8d6f4e7ec56c 9.5.10 landed
- 19989d8480d4 9.6.6 landed