Psycopg

Latest version: v3.2.6

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

Scan your dependencies

Page 7 of 8

3.0.8

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

- Decode connection errors in the ``client_encoding`` specified in the
connection string, if available (:ticket:`194`).
- Fix possible warnings in objects deletion on interpreter shutdown
(:ticket:`198`).
- Don't leave connections in ACTIVE state in case of error during COPY ... TO
STDOUT (:ticket:`203`).

3.0.7

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

- Fix crash in `~Cursor.executemany()` with no input sequence
(:ticket:`179`).
- Fix wrong `~Cursor.rowcount` after an `~Cursor.executemany()` returning no
rows (:ticket:`178`).

3.0.6

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

- Allow to use `Cursor.description` if the connection is closed
(:ticket:`172`).
- Don't raise exceptions on `ServerCursor.close()` if the connection is closed
(:ticket:`173`).
- Fail on `Connection.cursor()` if the connection is closed (:ticket:`174`).
- Raise `ProgrammingError` if out-of-order exit from transaction contexts is
detected (:tickets:`176, 177`).
- Add `!CHECK_STANDBY` value to `~pq.ConnStatus` enum.

3.0.5

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

- Fix possible "Too many open files" OS error, reported on macOS but possible
on other platforms too (:ticket:`158`).
- Don't clobber exceptions if a transaction block exit with error and rollback
fails (:ticket:`165`).

3.0.4

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

- Allow to use the module with strict strings comparison (:ticket:`147`).
- Fix segfault on Python 3.6 running in ``-W error`` mode, related to
`!backport.zoneinfo` (:ticket:`109`).
<https://github.com/pganssle/zoneinfo/issues/109>`__.
- Build binary package with libpq versions not affected by `CVE-2021-23222
<https://www.postgresql.org/support/security/CVE-2021-23222/>`__
(:ticket:`149`).

3.0.3

Not secure
^^^^^^^^^^^^^

- Release musllinux binary packages, compatible with Alpine Linux
(:ticket:`141`).
- Reduce size of binary package by stripping debug symbols (:ticket:`142`).
- Include typing information in the `!psycopg_binary` package.

Page 7 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.