]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Improve pg two-phase transactions
authorFederico Caselli <cfederico87@gmail.com>
Mon, 13 Apr 2026 21:53:00 +0000 (23:53 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 14 Apr 2026 19:48:15 +0000 (21:48 +0200)
commit57cc9e7921141dc2212974944d67d025ededd706
treeb22882873653fefa6002048f7e53a5f32cc0bd00
parent73a3146a21c8e8e023b5fc7ea5a6856bc8a5a40e
Improve pg two-phase transactions

Improve handling of two phase transaction identifiers for PostgreSQL
when the identifier is provided by the user.
As part of this change the psycopg dialect was updated to use the DBAPI
two phase transaction API instead of executing the SQL directly.

Fixes: #13229
Change-Id: If8301a7253b4a0c88e5323c9a052c3a9fa258780
(cherry picked from commit 08cef20f4a2bfbeda61abfe6caee975190f0794c)
doc/build/changelog/unreleased_20/13229.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/_psycopg_common.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/provision.py
lib/sqlalchemy/dialects/postgresql/psycopg.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/engine/base.py
test/engine/test_execute.py