pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: First draft of the PG 15 release notes
Date: Fri, 1 Jul 2022 18:21:28 -0700
Message-ID: <20220702012128.GA2301877@rfd.leadboat.com> (raw)
In-Reply-To: <Yr84AO1O+zD6Sgot@momjian.us>
References: <YnqIT8kpiO3m6SD7@momjian.us>
	<20220628063719.GA2208244@rfd.leadboat.com>
	<YrtmIcJ5BR7+GTvU@momjian.us>
	<20220630050808.GC2257984@rfd.leadboat.com>
	<Yr84AO1O+zD6Sgot@momjian.us>

On Fri, Jul 01, 2022 at 02:08:00PM -0400, Bruce Momjian wrote:
> On Wed, Jun 29, 2022 at 10:08:08PM -0700, Noah Misch wrote:
> > On Tue, Jun 28, 2022 at 04:35:45PM -0400, Bruce Momjian wrote:

> > > > >       permissions on the <literal>public</literal> schema has not
> > > > >       been changed.  Databases restored from previous Postgres releases
> > > > >       will be restored with their current permissions.  Users wishing
> > > > >       to have the old permissions on new objects will need to grant
> > > > 
> > > > The phrase "old permissions on new objects" doesn't sound right to me, but I'm
> > > > not sure why.  I think you're aiming for the fact that this is just a default;
> > > > one can still change the ACL to anything, including to the old default.  If
> > > > these notes are going to mention the old default like they do so far, I think
> > > > they should also urge readers to understand
> > > > https://www.postgresql.org/docs/devel/ddl-schemas.html#DDL-SCHEMAS-PATTERNS
> > > > before returning to the old default.  What do you think?
> > > 
> > > Agreed, the new text is:
> > > 
> > > 	Users wishing to have the former permissions will need to grant
> > > 	<literal>CREATE</literal> permission for <literal>PUBLIC</literal> on
> > > 	the <literal>public</literal> schema; this change can be made on
> > > 	<literal>template1</literal> to cause all new databases to have these
> > > 	permissions.
> > 
> > What do you think about the "should also urge readers ..." part of my message?
> 
> I see your point, that there is no indication of why you might not want
> to restore the old permissions.  I created the attached patch which
> makes two additions to clarify this.

> --- a/doc/src/sgml/release-15.sgml
> +++ b/doc/src/sgml/release-15.sgml
> @@ -63,12 +63,11 @@ Author: Noah Misch <noah@leadboat.com>
>        permissions on the <literal>public</literal> schema has not
>        been changed.  Databases restored from previous Postgres releases
>        will be restored with their current permissions.  Users wishing
> -      to have the former more-open permissions will need to grant
> +      to have the former permissions will need to grant
>        <literal>CREATE</literal> permission for <literal>PUBLIC</literal>
>        on the <literal>public</literal> schema; this change can be made
>        on <literal>template1</literal> to cause all new databases
> -      to have these permissions.  This change was made to increase
> -      security.
> +      to have these permissions.
>       </para>
>      </listitem>

Here's what I've been trying to ask: what do you think of linking to
https://www.postgresql.org/docs/devel/ddl-schemas.html#DDL-SCHEMAS-PATTERNS
here?  The release note text is still vague, and the docs have extensive
coverage of the topic.  The notes can just link to that extensive coverage.





view thread (145+ messages)  latest in thread

Message-ID: <20220702012128.GA2301877@rfd.leadboat.com>
Permalink:  ../20220702012128.GA2301877@rfd.leadboat.com/
Also on:    postgresql.org/message-id/20220702012128.GA2301877@rfd.leadboat.com

 · 

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: noah@leadboat.com, bruce@momjian.us
  Subject: Re: First draft of the PG 15 release notes
  In-Reply-To: <20220702012128.GA2301877@rfd.leadboat.com>

* 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