We can consider this just a bug, not a change of interface. It is
particularly bad because it doesn't allow to pipe a COPY FROM into a
COPY TO.
See https://github.com/psycopg/psycopg/discussions/285#discussioncomment-
2663192
for details.
see :ref:`adaptation` for details.
.. automethod:: write
-
- .. versionchanged:: 3.1
-
- accept `bytearray` and `memoryview` data as input too.
-
.. automethod:: read
Instead of using `!read()` you can iterate on the `!Copy` object to
- Add `pq.PGconn.trace()` and related trace functions (:ticket:`#167`).
- Add ``prepare_threshold`` parameter to `Connection` init (:ticket:`#200`).
- Add `Error.pgconn` and `Error.pgresult` attributes (:ticket:`#242`).
-- Allow `bytearray`/`memoryview` data too as `Copy.write()` input
- (:ticket:`#254`).
- Drop support for Python 3.6.
Psycopg 3.0.12 (unreleased)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
+- Allow `bytearray`/`memoryview` data too as `Copy.write()` input
+ (:ticket:`#254`).
- Fix dumping `~enum.IntEnum` in text mode, Python implementation.