# PostgreSQL compatibility and limits

Read the exact parity claim, client coverage, and boundaries to check before moving an application.

**The current 1,674-statement fixture and original 1,643-statement fixture each matched PostgreSQL 18.7 in full.** Both replays run against PostgreSQL, the native PostDurable engine, and PostDurable in local workerd. A match includes output values, result descriptors, command tags, and SQLSTATEs, as recorded by the fixture.

## Client workflows covered locally

- **psql and libpq** — the local browser-to-database journey, SCRAM authentication, and SQL over the optional certificate-verified gateway.
- **Node pg and tokio-postgres** — stock PostgreSQL transport and typed results, including binary cases.
- **Prisma and Drizzle** — exercised migration and introspection flows, prepared reads, parameterized writes, rollback, and representative application queries.
- **SQL and storage** — fixture groups cover transactions, schema changes, array and JSON operations, joins, grants, locks, and recovery.

## Boundaries to check

Compatibility applies to the compared fixtures and documented profiles. Arbitrary extensions, PostgreSQL server internals, external application suites, and hosted infrastructure need separate qualification. Some local execution limits intentionally differ. For example, the named-plan churn fixture accepts 128 named plans per candidate session and returns SQLSTATE 54000 on the next Parse. The PostgreSQL control accepted that Parse.

Before a migration, run your own schema migrations and the application's critical reads and writes on a disposable database. Check result types, errors, transaction behavior, and any SQL privileges or extensions the application needs.

## Reproduce the fixture replay

With PostgreSQL 18.7 and the local build tools available, run from the project checkout:

```sh
make setup
python3 qualification/historical.py --corpus current
python3 qualification/historical.py --corpus historical
```

[Compatibility results](/compatibility) · [SQL examples](/sql) · [Local benchmarks](/benchmarks)
