Doc: fix missing explanation of default object privileges.
authorTom Lane <[email protected]>
Wed, 11 Oct 2017 20:56:23 +0000 (16:56 -0400)
committerTom Lane <[email protected]>
Wed, 11 Oct 2017 20:56:59 +0000 (16:56 -0400)
commitf7126b4d6524b1118cebd2a4cfdbe02f80eaa965
tree63790fc4d8884075bddab6c98cffc794da2a9cda
parent7573d122f157b136b7d2af2f3f112e702c8d7437
Doc: fix missing explanation of default object privileges.

The GRANT reference page, which lists the default privileges for new
objects, failed to mention that USAGE is granted by default for data
types and domains.  As a lesser sin, it also did not specify anything
about the initial privileges for sequences, FDWs, foreign servers,
or large objects.  Fix that, and add a comment to acldefault() in the
probably vain hope of getting people to maintain this list in future.

Noted by Laurenz Albe, though I editorialized on the wording a bit.
Back-patch to all supported branches, since they all have this behavior.

Discussion: https://postgr.es/m/1507620895[email protected]
doc/src/sgml/ref/grant.sgml
src/backend/utils/adt/acl.c