Re: Add SPLIT PARTITION/MERGE PARTITIONS commands

From: Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Date: 2025-05-12 08:31:04
Message-ID: e24af244-887f-4ab9-bc87-8fe315de0077@postgrespro.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi!

We (with colleagues) discussed further improvements to SPLIT/MERGE
PARTITION(S). As a result of the discussion, the following answers to
the questions remained:

1. Who should be the owner of new partitions (SPLIT PARTITION command)
if owner of the partition being split is not the same as the current user?
a) current user (since he is the one who creates new tables);
b) the owner of the partitioned partition (since it is the owner of the
table and should continue to own it).

2. Who should be the owner of the new partition (MERGE PARTITIONS
command) if the partitions being merged have different owners?
a) current user (since he is the one who creates new table);
b) merging of partitions should be forbidden if they have different owners.

Please, advise what seems to be the best solution for points 1 and 2.

With best regards,
Dmitry Koval

Postgres Professional: http://postgrespro.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message shveta malik 2025-05-12 08:40:56 Re: Fix slot synchronization with two_phase decoding enabled
Previous Message Fujii Masao 2025-05-12 08:27:41 Re: add tab-complete for ALTER DOMAIN ADD...