Skip to content

Don't rollback on reset if not necessary#434

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
altertable-ai:le/fix-spurious-rollback-on-reset
Apr 8, 2026
Merged

Don't rollback on reset if not necessary#434
staticlibs merged 1 commit intoduckdb:mainfrom
altertable-ai:le/fix-spurious-rollback-on-reset

Conversation

@leo-altertable
Copy link
Copy Markdown
Contributor

After starting to use the new pooling mechanism we observed an increased amount of rollbacks and warning messages about issuing a rollback outside of a transaction.

My diagnostic is that this behavior is caused by the unconditional ROLLBACK in the Reset of the connection, which is called on its release.

@leo-altertable leo-altertable changed the title Don't on reset rollback if not necessary Don't rollback on reset if not necessary Apr 8, 2026
Copy link
Copy Markdown
Collaborator

@staticlibs staticlibs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for testing this early! That was an oversight, I will try to squeeze this fix into 1.5.2.

@staticlibs staticlibs merged commit c89234f into duckdb:main Apr 8, 2026
15 checks passed
@leo-altertable leo-altertable deleted the le/fix-spurious-rollback-on-reset branch April 8, 2026 15:48
staticlibs added a commit to staticlibs/duckdb that referenced this pull request Apr 8, 2026
This Postgres update includes 2 following fixes that were added
recently:

 - duckdb/duckdb-postgres#432
 - duckdb/duckdb-postgres#434
Mytherin added a commit to duckdb/duckdb that referenced this pull request Apr 9, 2026
This Postgres scanner update includes 2 following fixes that were added
recently:

 - duckdb/duckdb-postgres#432
 - duckdb/duckdb-postgres#434
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