alter table t alter constraint c not valid; alter table t owner to group r; alter table t detach partition concurrently; alter table t add not null no inherit;