Re: Tablespace ACLs

From: Dominique Devienne <ddevienne(at)gmail(dot)com>
To: Erik Wienhold <ewie(at)ewie(dot)name>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Tablespace ACLs
Date: 2024-10-10 13:45:45
Message-ID: CAFCRh-9rJsoeBgBmpDOV6QYqy2hU0qFmVbtzmmQBanZf5KC7Uw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 10, 2024 at 3:40 PM Erik Wienhold <ewie(at)ewie(dot)name> wrote:
> On 2024-10-10 14:35 +0200, Dominique Devienne wrote:
> > Hi. Why isn't the ::regrole::text cast working as usual?
> > Aren't the OIDs for grantor and grantee returned by acldefault() valid ROLEs?
>
> You must call acldefault() with spcowner instead of oid:
>
> aclexplode(coalesce(spcacl, acldefault('t', spcowner)))

Rah, silly me. Thanks Erik, much better now. --DD

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Erik Wienhold 2024-10-10 14:03:10 Re: Tablespace ACLs
Previous Message Erik Wienhold 2024-10-10 13:40:07 Re: Tablespace ACLs