Psycopg

Latest version: v3.2.6

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

3.1.20

^^^^^^^^^^^^^^

- Use the simple query protocol to execute COMMIT/ROLLBACK when possible.
This should make querying the PgBouncer admin database easier
(:ticket:`820`).
- Avoid unneeded escaping checks and memory over-allocation in text copy
(:ticket:`829`).
- Bundle binary package with OpenSSL 3.3.x (:ticket:`847`).
- Drop macOS ARM64 binary packages for macOS versions before 14.0 and Python
before 3.10 (not for our choice but for the lack of available CI runners;
:ticket:`858`)

3.1.19

^^^^^^^^^^^^^^

- Fix unaligned access undefined behaviour in C extension (:ticket:`734`).
- Fix excessive stripping of error message prefixes (:ticket:`752`).
- Allow to specify the ``connect_timeout`` connection parameter as float
(:ticket:`796`).
- Improve COPY performance on macOS (:ticket:`745`).

3.1.18

^^^^^^^^^^^^^^

- Fix possible deadlock on pipeline exit (:ticket:`685`).
- Fix overflow loading large intervals in C module (:ticket:`719`).
- Fix compatibility with musl libc distributions affected by `CPython issue
65821`__ (:ticket:`725`).

.. __: https://github.com/python/cpython/issues/65821

3.1.17

^^^^^^^^^^^^^^

- Fix multiple connection attempts when a host name resolve to multiple
IP addresses (:ticket:`699`).
- Use `typing.Self` as a more correct return value annotation of context
managers and other self-returning methods (see :ticket:`708`).

3.1.16

^^^^^^^^^^^^^^

- Fix empty ports handling in async multiple connection attempts
(:ticket:`703`).

3.1.15

^^^^^^^^^^^^^^

- Fix use of ``service`` in connection string (regression in 3.1.13,
:ticket:`694`).
- Fix async connection to hosts resolving to multiple IP addresses (regression
in 3.1.13, :ticket:`695`).
- Respect the :envvar:`PGCONNECT_TIMEOUT` environment variable to determine
the connection timeout.

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.