]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: add note about features not supported in pipeline mode
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 3 Apr 2022 00:25:55 +0000 (02:25 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 7 May 2022 13:47:53 +0000 (15:47 +0200)
docs/advanced/pipeline.rst

index 6a50f4cd57b5700eb4e1c948f184871d4e165493..dc4c184518cb9acb077db93ed12be26657aa1b03 100644 (file)
@@ -68,6 +68,14 @@ which executed them. If a cursor had run more than one query, it will receive
 more than one result; results after the first will be available, in their
 execution order, using `~Cursor.nextset()`.
 
+.. warning::
+    Certanin features are not available in pipeline mode, including:
+
+    - COPY is not supported in pipeline mode by PostgreSQL.
+    - `Cursor.stream()` doesn't make sense in pipeline mode (its job is the
+      opposite of batching!)
+    - `ServerCursor` are currently not implemented in pipeline mode.
+
 .. note::
     Starting from Psycopg 3.1, `Cursor.executemany()` is optimised to make use
     of pipeline mode.