Add "pg_database_owner" default role.
authorNoah Misch <noah@leadboat.com>
Fri, 26 Mar 2021 17:42:17 +0000 (10:42 -0700)
committerNoah Misch <noah@leadboat.com>
Fri, 26 Mar 2021 17:42:17 +0000 (10:42 -0700)
commita14a0118a1fecf4066e53af52ed0f188607d0c4b
treed24b18e8c0fe2d3af805efe11e54d5718c249732
parentf687bf61ed4dc75ec074c387f848147da2097e13
Add "pg_database_owner" default role.

Membership consists, implicitly, of the current database owner.  Expect
use in template databases.  Once pg_database_owner has rights within a
template, each owner of a database instantiated from that template will
exercise those rights.

Reviewed by John Naylor.

Discussion: https://postgr.es/m/20201228043148.GA1053024@rfd.leadboat.com
doc/src/sgml/catalogs.sgml
doc/src/sgml/user-manag.sgml
src/backend/catalog/information_schema.sql
src/backend/commands/user.c
src/backend/utils/adt/acl.c
src/backend/utils/cache/catcache.c
src/bin/psql/describe.c
src/include/catalog/catversion.h
src/include/catalog/pg_authid.dat
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql