Preparing for system design interviews?  Try bugzed.com →

psycopg2

JSON →
library 2.9.11 ·python
verified Jun 30, 2026 install

The most widely used PostgreSQL adapter for Python. Sync only. Two packages on PyPI: psycopg2 (source, requires libpq dev headers) and psycopg2-binary (pre-compiled, no system deps). Official docs explicitly warn against psycopg2-binary in production. Current version: 2.9.11 (Mar 2026). For async PostgreSQL use asyncpg or psycopg (v3). For new projects consider migrating to psycopg (v3) which has both sync and async.

total hits 17
actors 6 distinct systems
last hit 3d ago AhrefsBot
GPTBot
4
Amazonbot
4
ClaudeBot
4
ChatGPT-User
1
OAI-SearchBot
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇰🇷 South Korea