On Fri, Nov 06, 2026 at 10:58:41AM +0900, Michael Paquier wrote:
> Perhaps we should try to work around simplifying
> RelationGetPartitionDesc() instead, and try to get rid of the
> omit_detached idea entirely?

Thanks, that made the fix much simpler. v4-0003 removes the
omit_detached argument of RelationGetPartitionDesc(), so DDL on the
parent now reaches a partition pending detach. FINALIZE then works
after ADD CHECK or RENAME COLUMN on the parent. This holds when
the partition is two levels down too.

I could not delete omit_detached entirely. Queries still need it, and
without it detach-partition-concurrently-1 to 4 fail.

0001 and 0002 work as is on 15 to 19. 0003 changes an API, so master only

Thanks,
Shihao

Attachment: v3-0003-Let-DDL-see-partitions-pending-detach.patch
Description: Binary data

Attachment: v3-0002-Test-partitioned-index-validity-while-a-partition-is.patch
Description: Binary data

Attachment: v3-0001-Count-partitions-pending-detach-when-validating-a-pa.patch
Description: Binary data

Reply via email to