Re: Partition Creation Permissions

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Samuel Nelson <valczir(dot)darkvein(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Partition Creation Permissions
Date: 2021-02-04 22:42:21
Message-ID: CAKFQuwZG2P3ZoC8Q_6MfZzBrTNtKsNTHpD+wMGzbpNzY8_x2DA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Feb 4, 2021 at 3:39 PM Samuel Nelson <valczir(dot)darkvein(at)gmail(dot)com>
wrote:

> I've been trying to restrict permissions of some users in our system and
> noticed that `create table foo partition of bar for values from (x) to (y)`
> complains that I must be the owner of the table. Is there another GRANT I
> can give to my user to allow creation and dropping of partitions without
> allowing them to drop the parent table?
>

I doubt it...might want to consider writing a security definer function
that you can give them permission to run instead of having them do things
directly.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Samuel Nelson 2021-02-04 23:00:22 Re: Partition Creation Permissions
Previous Message Samuel Nelson 2021-02-04 22:11:35 Partition Creation Permissions