Skip to content

Cannot abort failed migration #4054

Answered by tailhook
riolly asked this question in Q&A
Jul 11, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can do rollback to rollback the whole transaction. Any specific reason you want to do abort migration without rolling back transaction? (in this case, you can use savepoints)

Background: when some query fails in the transaction (you can notice that state in shell as [tx:failed]) we don't allow any query to execute (exceptions are rollback and rollback to savepoint). In this sense abort migration is no different from any other query.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@elprans
Comment options

@riolly
Comment options

Answer selected by tailhook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants