From: | Noah Misch <noah(at)leadboat(dot)com> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add "pg_database_owner" default role. |
Date: | 2021-03-26 18:00:22 |
Message-ID: | E1lPqkw-0000qI-Q7@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a14a0118a1fecf4066e53af52ed0f188607d0c4b
Modified Files
--------------
doc/src/sgml/catalogs.sgml | 3 ++
doc/src/sgml/user-manag.sgml | 15 ++++++++
src/backend/catalog/information_schema.sql | 9 ++++-
src/backend/commands/user.c | 36 ++++++++++++++++++
src/backend/utils/adt/acl.c | 44 ++++++++++++++++++++-
src/backend/utils/cache/catcache.c | 6 ++-
src/bin/psql/describe.c | 1 +
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_authid.dat | 5 +++
src/test/regress/expected/privileges.out | 61 ++++++++++++++++++++++++++++++
src/test/regress/sql/privileges.sql | 31 +++++++++++++++
11 files changed, 207 insertions(+), 6 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2021-03-26 21:59:27 | pgsql: Fix ndistinct estimates with system attributes |
Previous Message | Tomas Vondra | 2021-03-26 15:53:38 | pgsql: Fix alignment in BRIN minmax-multi deserialization |