PostgreSQL compatibility

The current and original SQL corpora both achieved 100% parity with PostgreSQL 18.7 on native PostDurable and local workerd.

Results by environment

The replay compares values, result descriptors, command tags, and SQLSTATEs. Both corpora recorded zero mismatches across the tested statements.

SQL fixturePostgreSQL 18.7Native PostDurableLocal workerd
Current corpus1,6741,6741,674
Original corpus1,6431,6431,643
Inspect individual SQL examples

Stock clients exercised

  • psql and libpq

    SQL through the local relay, SCRAM authentication, and encrypted TCP through the optional gateway.

  • Node pg and tokio-postgres

    Stock drivers with bound parameters, binary values, and typed result descriptors.

  • Prisma and Drizzle

    Tested migrations, schema introspection, prepared reads, rollback, and representative application queries.

What to check before migrating

The parity claim covers the compared fixtures. Check your migrations, application queries, error handling, privileges, and extension requirements on a disposable database. Local qualification does not establish hosted performance or compatibility for arbitrary PostgreSQL extensions.

Read the compatibility profiles and limits

Reproduce the local replay

Run these commands from a built checkout with PostgreSQL 18.7 available.

python3 qualification/historical.py --corpus current
python3 qualification/historical.py --corpus historical
Verification prerequisites and receipts