Re: Give default privileges to another SuperUser ? - Mailing list pgsql-general

From David G. Johnston
Subject Re: Give default privileges to another SuperUser ?
Date
Msg-id CAKFQuwYOdGZ6Hi_1NRyAV4YjVbTvuhQLvY+M=Gd0ZtJ5UBcmiQ@mail.gmail.com
Whole thread Raw
In response to Give default privileges to another SuperUser ?  (celati Laurent <laurent.celati@gmail.com>)
List pgsql-general
On Thu, Feb 17, 2022 at 2:14 PM celati Laurent <laurent.celati@gmail.com> wrote:

ALTER DEFAULT PRIVILEGES IN SCHEMA XXX GRANT SELECT ON TABLES TO "user";

Does a person know how to give privileges to a SuperUser role so that when he creates a new table, whether in the public schema or another schema, the table will be by default visible,

ALTER DEFAULT PRIVILEGES
    [ FOR { ROLE | USER } target_role [, ...] ]

This use case is why the "FOR target_role" clause exists.

David J.

pgsql-general by date:

Previous
From: Shaozhong SHI
Date:
Subject: frequency of positive and negative numbers, sizes of numbers and frequency of alteration of polarity
Next
From: Thomas Munro
Date:
Subject: Re: frequency of positive and negative numbers, sizes of numbers and frequency of alteration of polarity