Skip to content

PR 42: withTransactionModeRetry #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 15, 2020
Merged

PR 42: withTransactionModeRetry #54

merged 4 commits into from
Nov 15, 2020

Conversation

phadej
Copy link
Collaborator

@phadej phadej commented Nov 15, 2020

No description provided.

3noch and others added 4 commits November 15, 2020 20:56
Transactions that enter an error state must be aborted manually by
issuing a "ROLLBACK". However, if the transaction error happened during
a "COMMIT" then the rollback happens automatically. Issuing a "ROLLBACK"
at this point causes PostgreSQL to issue a "WARNING: There is no
transaction in progress". This warning can have much worse causes (e.g.
you "COMMIT" but never began a transaction). This change makes the
transaction retrying logic never cause PostgreSQL to issue this warning
making it a more useful warning for detecting real bugs.
@phadej phadej merged commit cf8a91b into master Nov 15, 2020
@phadej phadej deleted the pr-42-rebased branch November 15, 2020 19:27
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