Close #1020.
- 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!)
+ opposite of batching!).
- `ServerCursor` are currently not implemented in pipeline mode.
+ - You cannot execute :ref:`multiple statements in the same query
+ <multi-statements>`.
.. note::
... "INSERT INTO foo VALUES (%s); INSERT INTO foo VALUES (%s)",
... (10, 20))
+.. warning::
+
+ You cannot executeA multiple statements in the same query:
+
+ - when retrieving a :ref:`binary result <binary-data>` (such as using
+ ``.execute(..., binary=True)``;
+ - when using the :ref:`pipeline mode <pipeline-mode>`.
+
.. warning::
If a statement must be executed outside a transaction (such as
cur.execute(
"SELECT image_data FROM images WHERE id = %s", [image_id], binary=True)
data = cur.fetchone()[0]
+
+.. warning::
+
+ You cannot execute :ref:`multiple statements in the same query
+ <multi-statements>` when requesting a binary result.