pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: PG 14 release notes, first draft
Date: Sat, 22 May 2021 19:29:45 -0400
Message-ID: <20210522232945.GO20766@tamriel.snowman.net> (raw)
In-Reply-To: <20210510060308.GC6088@momjian.us>
References: <20210510060308.GC6088@momjian.us>

Greetings,

* Bruce Momjian (bruce@momjian.us) wrote:
> I have committed the first draft of the PG 14 release notes.  You can
> see the most current  build of them here:
> 
> 	https://momjian.us/pgsql_docs/release-14.html

It occurs to me that the wording around the new default roles could
probably be better.  Specifically:

Add predefined roles pg_read_all_data and pg_write_all_data (Stephen Frost)

These non-login roles give read-only/write-only access to all objects.

Might be better as:

These non-login roles give read, or write, access to all tables, views,
and sequences.

(These roles don't actually allow, for example, a function to be
redefined, so saying 'all objects' isn't quite right either.)

While these roles could be used to create a 'read only' or 'write only'
role, they, themselves, do not explicitly convey that on to a role
because they don't do anything to prevent someone from GRANT'ing other
rights to some role which has been GRANT'd these predefined roles.  I
don't think anyone on this list thought differently from that, but the
phrasing strikes me as potentially confusing.

Maybe another way would be:

These non-login roles give (only) read, or write, access to all tables,
views, and sequences.

but I don't think saying 'only' there really adds anything and instead
invites confusion.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (173+ messages)  latest in thread

Message-ID: <20210522232945.GO20766@tamriel.snowman.net>
Permalink:  ../20210522232945.GO20766@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20210522232945.GO20766@tamriel.snowman.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: sfrost@snowman.net, bruce@momjian.us
  Subject: Re: PG 14 release notes, first draft
  In-Reply-To: <20210522232945.GO20766@tamriel.snowman.net>

* 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