Raxx · internal docs

internal · gated

ADR-0069: psycopg2-binary as Raptor's Postgres driver

Status: Accepted
Date: 2026-05-10 UTC
Epic: #1556 — Raptor SQLite → Postgres migration
Design doc: docs/architecture/raptor-postgres-migration/design.md §4.1


Context

Raptor (backend_v2) is migrating from sqlite3 to Heroku Postgres. A Python Postgres driver is required. The three realistic options are:

Raptor is a synchronous WSGI Flask app. Asyncio drivers are out of scope.


Decision

Use psycopg2-binary>=2.9.


Consequences

Positive:

Negative:


Alternatives Considered

psycopg (psycopg3)

asyncpg