From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Jordi Gutiérrez Hermoso <jordigh(at)octave(dot)org>, pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: Document target_role param of ALTER DEFAULT PRIVILEGES |
Date: | 2021-02-18 07:16:13 |
Message-ID: | 293903c1f00f9b5053c0aa388ddc2850ae537f33.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Wed, 2021-02-17 at 15:08 -0500, Jordi Gutiérrez Hermoso wrote:
> I just had a confusing moment trying to figure out why my roles
> weren't creating tables the way I was expecting them to. I didn't
> understand what the `target_role` parameter did. No matter how I try
> to read this page, I can't see an explanation for that parameter:
>
> https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html
>
> I propose an explanation like the following be added to the
> `target_role` parameter:
>
> This is the role that will create objects with altered default
> privileges. Note that changes in default privileges aren't
> inherited, so altering the default privileges of created objects
> for a parent role will not change the default privileges of
> objects created by inherited roles.
+1. I cannot count the number of times I have seen people confused by that.
Suggested patch attached.
Yours,
Laurenz Albe
Attachment | Content-Type | Size |
---|---|---|
0001-Clarify-docs-for-ALTER-DEFAULT-PRIVILEGES.patch | text/x-patch | 1.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | PG Doc comments form | 2021-02-18 13:54:37 | Transaction ID modulo |
Previous Message | Jordi Gutiérrez Hermoso | 2021-02-17 20:08:35 | Document target_role param of ALTER DEFAULT PRIVILEGES |