Skip to content

Conversation

marcus-kempe
Copy link
Contributor

The way the code works prior to this change proposal, is that the transaction open for the final table to have constraints applied, will be left un-commited during the ANALYZE phase. Since an ACCESS EXCLUSIVE lock will still be held, this can be problematic.

The way the code works prior to this change proposal, is that the transaction open for the final table to have constraints applied, will be left un-commited during the ANALYZE phase. 
Since an ACCESS EXCLUSIVE lock will still be held, this can be problematic.
@keithf4
Copy link
Collaborator

keithf4 commented May 21, 2025

Good catch. Thank you!

@keithf4 keithf4 self-requested a review May 21, 2025 15:14
@keithf4 keithf4 self-assigned this May 21, 2025
@keithf4 keithf4 added this to the 5.3 milestone May 21, 2025
@keithf4 keithf4 merged commit 578f2d0 into pgpartman:development Sep 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants