Hi, Jiah He!
Thank you for the patch!
1.
>can simplified to
> if (list_member_oid(mergingPartitions, existingRelid))
> newPartitionOid = existingRelid;
Applied (with small additional changes).
2. Patch v56-0001-refactor-v56-check_partitions_for_split.no-cfbot
applied with cosmetic changes.
--
With best regards,
Dmitry Koval
Postgres Professional: http://postgrespro.com