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 ba5eaa35-cd85-43d6-95b3-8cf211fd6b67@postgrespro.ru
Whole thread Raw
In response to Re: Add SPLIT PARTITION/MERGE PARTITIONS commands  (jian he <jian.universality@gmail.com>)
List pgsql-hackers
Hi!

 >per https://www.postgresql.org/docs/current/sql-altertable.html
 >"You must own the table to use ALTER TABLE."
 >That means the current user must own the to be SPLITed partition.

Last statement may be incorrect (if the logic is different).
Current user can attach another user's partition. If current user can 
change (attach) another user's partition, why can't he split the 
partition? After attach, partition is part of current user's table, and 
current user can change his own table. (Moreover, the owner of the new 
partitions is the same as the owner of the split partition.)

-- 
With best regards,
Dmitry Koval

Postgres Professional: http://postgrespro.com




pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Allow reading LSN written by walreciever, but not flushed yet
Next
From: Fujii Masao
Date:
Subject: Re: Make wal_receiver_timeout configurable per subscription