Oct 2025

1 commit
Stop creating constraints during DETACH CONCURRENTLY
11 Oct 2025Álvaro Herreramaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.1REL_17_STABLE17.7REL_16_STABLE16.11REL_15_STABLE15.15REL_14_STABLE14.20Also in: BUG #19070: issue with DETACH PARTITION CONCURRENTLY on a hash partition table (modified before commit)
LLM analysis, 97% surewritten from the discussion, no matching patch4 of 4 reviewers saw the final version

This development-branch commit removes DetachAddConstraintIfNeeded() entirely and adjusts the regression tests, implementing the broader removal discussed in #7, #8, and #10, rather than the attached create-then-drop patch in #2. The Author trailer credits Haiyang Li, who has no message in this thread, and #11 announces the fix following another report.

  • Michael Paquiersaw the final versionLLM analysis, 94% sureMichael reviewed the sole attached patch in #3 and proposed avoiding unnecessary constraint creation; coverage uses the last-patchset benchmark required for a discussion-derived commit.
  • Fei Changhongsaw the final versionLLM analysis, 89% sureFei explained the transaction and locking sequence in #8, endorsed eliminating substitute constraints, and identified faster reattachment as their remaining benefit.
  • Tender Wangsaw the final versionLLM analysis, 96% sureAfter questioning pruning correctness in #9, Tender inspected the code and endorsed removing substitute constraints for every partitioning strategy in #10.
  • Álvaro Herrerasaw the final versioncommittercommitted the patch

Credits across 1 commit

Author
李海洋(陌痕)1
Reviewer
Alvaro Herreracommitter1
Reported by
feichanghong1
李海洋(陌痕)1
Committer
Alvaro Herrera1