Add check-copy-stall.sh COPY stall diagnostic#65
Open
teknogeek0 wants to merge 2 commits into
Open
Conversation
Read-only target-side diagnostic: blocking tree, ungranted locks, wait-event summary, active COPY/vacuum progress, idle-in-transaction sessions, and an optional throughput sample. Documents it in README and AGENTS.
Contributor
|
looks good. two minor changes:
|
DmitriiAn
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a read-only, target-side diagnostic for a stalled or slow pgcopydb COPY during the initial copy phase.
What
check-copy-stall.shanswers the two questions that matter when a migration looks stuck:Sections: blocking tree, ungranted locks, wait-event summary, active COPY progress, running vacuums, idle-in-transaction sessions, and an optional throughput sample (
--no-sample/--sample-secs N).Notes
default_transaction_read_only=onplus statement/lock timeouts; makes no modifications to the target.No automated test suite in this repo; validated by syntax check and code inspection.