pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add "pg_database_owner" default role.
Date: Fri, 26 Mar 2021 18:00:22 +0000
Message-ID: <E1lPqkw-0000qI-Q7@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1lPqkw-0000qI-Q7@gemulon.postgresql.org>
Permalink:  ../E1lPqkw-0000qI-Q7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lPqkw-0000qI-Q7@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Add "pg_database_owner" default role.
  In-Reply-To: <E1lPqkw-0000qI-Q7@gemulon.postgresql.org>
  References: <E1lPqkw-0000qI-Q7@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox