Skip to content

Parse restore error tolerance from pgcopydb log#39

Merged
teknogeek0 merged 1 commit intomainfrom
fix/dynamic-restore-tolerance
Apr 14, 2026
Merged

Parse restore error tolerance from pgcopydb log#39
teknogeek0 merged 1 commit intomainfrom
fix/dynamic-restore-tolerance

Conversation

@teknogeek0
Copy link
Copy Markdown
Contributor

@teknogeek0 teknogeek0 commented Apr 10, 2026

Summary

  • check-migration-status.sh hardcoded a tolerance of 10 for pg_restore errors, but pgcopydb supports --restore-tolerance N to set this dynamically
  • Now parses the actual tolerance from pgcopydb's log output ("within tolerance of N" or "tolerance: N"), falling back to 10 if not found
  • Displays the tolerance value in the status output for visibility

pgcopydb supports --restore-tolerance (default 10) but the status
script always compared against a hardcoded 10. Now parses the actual
tolerance value from pgcopydb's log output.
@teknogeek0 teknogeek0 force-pushed the fix/dynamic-restore-tolerance branch from 0b81c0a to ed73b00 Compare April 13, 2026 19:03
@teknogeek0 teknogeek0 merged commit 5bd6d06 into main Apr 14, 2026
@teknogeek0 teknogeek0 deleted the fix/dynamic-restore-tolerance branch April 14, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants