]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: use the simple query protocol to execute BEGIN/COMMIT out of pipeline
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 14 May 2024 11:18:40 +0000 (13:18 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 15 May 2024 16:37:43 +0000 (18:37 +0200)
commit1564c362461f5252c7447972122e83d2aa6dc0f7
tree7a05ba5a61522a2c2e2ced4074a5261e076f177c
parent6b1016580d60d9dc134b00a8de85688bd87e95e9
fix: use the simple query protocol to execute BEGIN/COMMIT out of pipeline

We started using the extended protocol in e5079184 to fix #350, but,
probably to keep symmetry, we also changed the behaviour out of the
pipeline.

This turns out to be a problem for people connecting to the PgBouncer
admin console. They can use the `ClientCursor`, which tries to use the
simple protocol as much as it can, but they currently have to use
autocommit. With this changeset autocommit shouldn't be needed anymore.
See #808.
docs/news.rst
psycopg/psycopg/_connection_base.py