pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jordi GutiƩrrez Hermoso <jordigh@octave.org>
To: pgsql-docs@lists.postgresql.org
Subject: Document target_role param of ALTER DEFAULT PRIVILEGES
Date: Wed, 17 Feb 2021 15:08:35 -0500
Message-ID: <72652d72e1816bfc3c05d40f9e0e0373d07823c8.camel@octave.org> (raw)

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.






view thread (7+ messages)  latest in thread

Message-ID: <72652d72e1816bfc3c05d40f9e0e0373d07823c8.camel@octave.org>
Permalink:  ../72652d72e1816bfc3c05d40f9e0e0373d07823c8.camel@octave.org/
Also on:    postgresql.org/message-id/72652d72e1816bfc3c05d40f9e0e0373d07823c8.camel@octave.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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: jordigh@octave.org, pgsql-docs@lists.postgresql.org
  Subject: Re: Document target_role param of ALTER DEFAULT PRIVILEGES
  In-Reply-To: <72652d72e1816bfc3c05d40f9e0e0373d07823c8.camel@octave.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