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

From Dmitry Koval
Subject Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Date
Msg-id e24af244-887f-4ab9-bc87-8fe315de0077@postgrespro.ru
Whole thread Raw
In response to Re: Add SPLIT PARTITION/MERGE PARTITIONS commands  (vignesh C <vignesh21@gmail.com>)
List 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




pgsql-hackers by date:

Previous
From: Dmitry Dolgov
Date:
Subject: Re: queryId constant squashing does not support prepared statements
Next
From: Xuneng Zhou
Date:
Subject: Re: Add an option to skip loading missing publication to avoid logical replication failure