NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #459 most downloaded on PyPI
psycopg2 - Python-PostgreSQL Database Adapter
Last release 19 days ago
09 Sep 2026
Ships fairly regularly
a new release about every 5 months
Most releases are documented
notes for 52 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
16 years old
66 releases · first in 2010
All instances of psycopg2.Error subclasses now have pgerror, pgcode and cursor attributes. They will be set to None if no value is available.
Improved error handling:
Better PostgreSQL compatibility:
Other bug fixes:
Miscellaneous:
One column per quarter.
Better support for PostgreSQL, Python and win32:
Better support for PostgreSQL, Python and win32:
Support for per-connection type-casters (used by ZPsycopgDA too, this fixes a long standing bug that made different connections use a random set of date/time type-casters instead of the configured one.)
Better management of times and dates both from Python and in Zope.
copy_to and copy_from now take an extra "columns" parameter.
Python tuples are now adapted to SQL sequences that can be used with the "IN" operator by default if the psycopg2.extensions module is imported (i.e., the SQL_IN adapter was moved from extras to extensions.)
Fixed some small buglets and build glitches:
Now it really, really builds on MSVC and older gcc versions.
Fixed float conversion bug introduced in 2.0.3.
Fixed various buglets and a memory leak (see ChangeLog for details)
Fixed a bug in array typecasting that sometimes made psycopg forget about the last element in the array.
Fixed a bug in array typecasting that sometimes made psycopg forget about the last element in the array.
Fixed some minor buglets in string memory allocations.
Builds again with compilers different from gcc (#warning about PostgreSQL version is issued only if GCC is defined.)
Your coding agent can read these notes before it upgrades. Set up the MCP server →