Psycopg 3
The binary build bundles libpq 18.6 with OpenSSL 3.5.9, so PQ TLS to PostgreSQL works on any OS if the server offers it; source builds use the system libpq.
- PyPI
psycopg,psycopg-binary- Version cited
- 3.3.912 Nov 2026
- Downloads
- n/a
Key exchange and encryption
PQ by default
Binary wheel bundles OpenSSL 3.5.9
Signatures and identity
Unknown
Not reported
What to do
Use psycopg[binary] 3.3.9 or later with sslmode=verify-full and a TLS 1.3 minimum, and confirm the PostgreSQL server links OpenSSL 3.5+. Migrate off psycopg2-binary.
Since 1 Dec 2026 Nothing found as of 3 Dec 2026.
Details
Psycopg 3 uses libpq; its self-contained binary build and a system-libpq build need separate inventory (Psycopg install docs).
- binary wheel
psycopg[binary]3.3.9 bundles libpq 18.6 and OpenSSL 3.5.9, so PQ TLS works out of the box on any OS AGY. - system libpq Source or system builds use the system libpq and OpenSSL.
- The AGY report recommends
sslmode=verify-full sslminprotocolversion=TLSv1.3 sslnegotiation=direct(PostgreSQL 17+/18+; the server must link OpenSSL 3.5+). Its matrix gives the shortersslmode=verify-full sslminprotocolversion=TLSv1.3. - Migrate off legacy
psycopg2-binary. The AGY playbook listspsycopg[binary] >= 3.3.9as an immediate step; its matrix says to usepsycopg[binary]>=3.3.9.
Editorial note. Checked for this guide; not from the three reports. libpq documents the TLS floor keyword as
ssl_min_protocol_version; check the spelling in the AGY report’s connection string against the libpq docs before copying it.
The hybrid needs both ends: a PQ-capable client does not help if the PostgreSQL server links an older OpenSSL.
Full discussion: TLS and interpreters