Repository navigation
Conversation
A resume refused for a changed shadow, conversion drift, a held slot or a slot backlog left the same shadow, slot or fence, and row, but only a changed source said so, and a live run's slot kept retaining WAL.
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.
More resume refusals of a stopped copy-and-swap run now say what the run still holds, the shadow, slot or write fence, and checkpoint row, and how to clear it.
Why
A copy-and-swap run that stops keeps a shadow table, a replication slot or write fence, and a checkpoint row until it is resumed or removed, and a live run's slot keeps the server from recycling WAL the whole time. When a resume was refused because the shadow had been changed by hand or a conversion function had changed, the refusal did not say any of that was still standing, so an operator could walk away from a slot that grows the server's disk use until someone notices.
What
StandingRunError(the typed leftovers: shadow, slot and publication, row phase,Hold) now rides onresume-row-mismatchfrom a changed shadow,copy-conversion-drift(on resume and mid-run),resume-slot-heldandresume-slot-backlog, as it already did onresume-source-changedand the cutover drift causes. One helper,leavesStanding, attaches it.--restartordiscardwould truthfully clear.standingRefusalDetail: the refusal, the leftovers, how to resume where that is possible (undo the catalog change, wait for the holder), then--restartandpg-sprite discard <table>.resume-slot-backlog's detail is migrate: name the table and the discard in the divergence and backlog remedies #629's and is left as it is.StandingRunErrorwithHold: replication-slotfor a conversion drift and a changed shadow on a live run stopped at verifying, and for the backlog refusal from each stop phase.Before / after
A live run of
ALTER TABLE app.orders ALTER COLUMN amount TYPE numeric(14,2) USING in_cents(amount), stopped at verifying, then resumed after someone changedin_cents.