From: Daniele Varrazzo Date: Thu, 13 Apr 2023 21:23:14 +0000 (+0200) Subject: docs: fix cursor -> connection in the context of transaction management X-Git-Tag: 3.1.9~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d2ab05ba0ef239a042323ebd468d2b8d3df4c19;p=thirdparty%2Fpsycopg.git docs: fix cursor -> connection in the context of transaction management Close #548 --- diff --git a/docs/basic/transactions.rst b/docs/basic/transactions.rst index b97604617..91c304aec 100644 --- a/docs/basic/transactions.rst +++ b/docs/basic/transactions.rst @@ -19,8 +19,8 @@ connection will start a new transaction. If a database operation fails, the server will refuse further commands, until a `~rollback()` is called. -If the cursor is closed with a transaction open, no COMMIT command is sent to -the server, which will then discard the connection. Certain middleware (such +If the connection is closed with a transaction open, no COMMIT command is sent +to the server, which will then discard the connection. Certain middleware (such as PgBouncer) will also discard a connection left in transaction state, so, if possible you will want to commit or rollback a connection before finishing working with it.