Hi,
after upgrading Partman 4.7 to 5.2 we face lock wait issues with reapply_constraints.
relation/AccessShare on the parent are waiting
`
LOG: duration: 324476.907 ms statement: call partman.reapply_constraints_proc('parent_table', false, true,0, true);
`
in dry-run, most time is spent with analysing the partitions.
seems like exclusive locks are kept during the final analyze.
No futher details so far.