Re: Add SPLIT PARTITION/MERGE PARTITIONS commands

Поиск
Список
Период
Сортировка
От Dmitry Koval
Тема Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Дата
Msg-id ba5eaa35-cd85-43d6-95b3-8cf211fd6b67@postgrespro.ru
обсуждение исходный текст
Ответ на Re: Add SPLIT PARTITION/MERGE PARTITIONS commands  (jian he <jian.universality@gmail.com>)
Список 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 по дате отправления: