]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: document that now rollback issues a sync point
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 7 May 2022 14:53:34 +0000 (16:53 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 7 May 2022 14:53:34 +0000 (16:53 +0200)
docs/advanced/pipeline.rst

index 06373b33492f569369bd61c21c730d48474eb335..7f01d17aac62888fcbc6057fe9d21b58f1f2d466 100644 (file)
@@ -20,9 +20,8 @@ buffered on the server side; the server flushes that buffer when a
 *synchronization point* is established. If any statement encounters an error,
 the server aborts the current transaction and does not execute any subsequent
 command in the queue until the next synchronization point; a
-`~errors.PipelineAborted` exception is raised for each such command (including
-a `~Connection.rollback()`). Query processing resumes after the
-synchronization point.
+`~errors.PipelineAborted` exception is raised for each such command. Query
+processing resumes after the synchronization point.
 
 Pipeline mode is most useful when the server is distant, i.e., network latency
 (“ping time”) is high, and also when many small operations are being performed
@@ -57,7 +56,8 @@ output buffer.
 This flush can happen either when a synchronization point is established by
 Psycopg:
 
-- using the `Pipeline.sync()` method, or,
+- using the `Pipeline.sync()` method,
+- on `~Connection.rollback()`,
 - at the end of a `!Pipeline` block;
 
 or using a fetch method such as `Cursor.fetchone()`.