Re: Add SPLIT PARTITION/MERGE PARTITIONS commands - Mailing list pgsql-hackers

From Alexander Korotkov
Subject Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Date
Msg-id CAPpHfdtyzpCZy+6MG-OTAkX_jU+ZoU6GgpZnaM5nV8rs_OKamw@mail.gmail.com
Whole thread Raw
In response to Re: Add SPLIT PARTITION/MERGE PARTITIONS commands  (Dmitry Koval <d.koval@postgrespro.ru>)
List pgsql-hackers
On Thu, May 22, 2025 at 11:57 AM Dmitry Koval <d.koval@postgrespro.ru> wrote:
> > superuser can bypass all permission checks.
> > superuser can attach any table to the partitioned table as he wants.
>
> That's right.
> Using SUPERUSER may be a rare situation, but it needs to be processed.

I suggest that owner of new partitions produced by ALTER TABLE ...
SPLIT should be the same as owner of original partition.  Even if this
operation is done by superuser.  Superuser may explicitly set he owner
if needed.  I think we need to explicitly document this.

------
Regards,
Alexander Korotkov
Supabase



pgsql-hackers by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: pg_upgrade: warn about roles with md5 passwords
Next
From: Alexander Korotkov
Date:
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands