Thread

  1. Re: Add SPLIT PARTITION/MERGE PARTITIONS commands

    Dmitry Koval <d.koval@postgrespro.ru> — 2025-05-21T12:30:01Z

    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