The Prisma Postgres Free plan (200,000 operations a month, no card) bills each SQL message you send, not each row or statement. A 10-statement simple query cost 1 op, a bare connect 0, psql's \d 10. Our full benchmark used about 2,500 ops. npx create-db gave a working us-east-1 database in 4.9–6.4 s with no account. Direct connections were refused at 44 (docs: 10). After 6 min and 60 min idle, the first query took ~0.25 s longer than warm and the Postgres process had not restarted. From India, queries took ~290 ms over TCP and ~2.05 s over Prisma's HTTP driver.
Tested 2026-12-01 on free plans only; paid tiers may differ. The client was a Linux VM in Hyderabad, India, talking to AWS us-east-1, so most latency is the India–Virginia round trip. Compare ratios, not absolute numbers.
| Shared workload (same scripts for every provider) | Prisma Postgres Free, us-east-1 | |---|---| | Signup | email+password, verification mail ~1.6 s; no card, phone or captcha | | DB without an account (npx create-db --json) | 4.9 s, 6.4 s; deleted after 72 h unless claimed | | Load Pagila (commit 5ba5a57) schema + data | 51.3 s + 27.8 s (2 GRANT/REVOKE errors) | | \copy 1M rows, then index + analyze | 43.1 s, then 4.3 s + 2.5 s; DB 156 MB | | SELECT 1 p50 / p95 (100×, one session) | direct 301 / 436 ms; pooled 290 / 294 ms | | Q1–Q5 p50, direct | 308, 318, 384, 307, 314 ms (repeat: 296, 318, 386, 321, 312) | | Q1–Q5 p50, pooled | 276, 605, 361, 295, 293 ms (repeat: 285, 302, 358, 306, 318) | | New connection + SELECT 1 | 2.02–2.15 s (5 runs) | | After 6 min idle | 2.30 s, then 2.03 / 2.08 s | | After 60 min idle | 2.28 s, then 2.03 / 2.00 s; pg_postmaster_start_time unchanged | | After 24 h / 8 days idle | pending (re-checked 2026-12-02 / 2026-12-09; we will post the result as a follow-up) | | Max concurrent direct connections | 44 | | Pooler, 100 clients holding 60 s | 25 served at once, rest queued, 25 failed query_wait_timeout | | pg_dump -Fc, 35.0 MB | 1 failure at 129 s, then 5/5 logged runs OK; full dump 64.5–68.8 s | | pg_restore into a second Prisma DB | 104.2 s, all rows present | | Extensions | pgvector 0.8.1, pg_search, pg_trgm, pg_stat_statements, pgcrypto, postgres_fdw and more; no PostGIS, pg_cron, TimescaleDB |
What counts as an operation on Prisma Postgres
Each action ran on a fresh database. We read GET api.prisma.io/v1/databases/{id}/usage before and after, waiting until the counter stopped changing.
| Action | Ops | |---|---| | Connect, no query | 0 | | 10× select 1 (separate connections, one session, or via the pooler) | 10 each | | psql -c "select 1; select 2; … select 10" | 1 | | begin; select 1; select 2; select 3; commit; | 5 | | Syntax error | 1 | | select * returning 10,000 rows | 1 | | create table + \copy 10,000 rows | 3 | | psql \d t | 10 | | 10 node-postgres parameterized queries | 10 | | pg_dump of a one-table DB | 82 |
Round trips cost ops; rows don't. Use multi-row INSERT, COPY and CTEs. Keep psql meta-commands and pg_dump out of health checks and cron jobs. BEGIN/COMMIT cost one op each. The counter lags 20–60 s, sometimes more. Prisma's FAQ says to batch to save ops, but the ToS (§14) forbids "circumventing usage metering", and neither says which side semicolon-joined strings fall on.
Behaviour at the 200k limit was not tested; we didn't burn 200k round trips. The docs say the database "stops accepting read and write requests" until you upgrade, the month resets ("resets Jan 1" on the billing page), or a 24-hour grace period starts. To watch for it headlessly, read usageBlocked from GET /v1/workspaces/{id}/subscription.
Prisma Postgres direct connections stop at 44, not the documented 10
The docs list the Free plan as 10 direct connections ("5 … reserved for platform operations") plus 10 pooled. We held 44 direct sessions before getting:
FATAL: remaining connection slots are reserved for roles with the SUPERUSER attributemax_connections is 50. Our role is a "restricted superuser" (rolsuper = t), yet it was still refused.
The Prisma Postgres pooler queues instead of refusing
We sent 100 clients through pooled.db.prisma.io, each running pg_sleep(60). 25 got server connections and the rest got NOTICE: No server connection available in postgres backend, client being queued. About two minutes later, 25 died with FATAL: query_wait_timeout. Under a burst, serverless functions see long stalls first and errors later.
npx create-db gives Prisma Postgres with no signup
npx create-db@latest --region us-east-1 --json returns a plain postgres://…@db.prisma.io:5432/postgres?sslmode=require URL, a claimUrl, a deletionDate 72 h ahead, and userMessage/nextStep fields an agent can show to its user. The URL worked from psql, node-postgres and pg_dump. Claiming needs an account and an OAuth grant of "Full access to the workspace" (workspace:admin). After the claim, the same URL kept working and the server was not restarted. So an agent can start on create-db and hand the database to a human later.
Prisma Postgres over HTTP (@prisma/ppg) is ~7× slower per query from far away
@prisma/ppg 1.0.1 measured select 1 at a p50 of 2,047–2,471 ms over 4 runs. node-postgres over TCP to the same database measured 283–313 ms. db.prisma.io is a nearby proxy (Singapore IPs from India, TCP connect 55–68 ms), yet the HTTP driver's per-query time was about 7× the TCP round trip; we did not trace why. One trap: await ppg.sql\insert …\` **without .collect() does nothing**. It returns an iterator and the row is never written. Use .collect() or ppg.sql.exec. Accelerate (prisma+postgres://`) is being retired: the console offers only a "temporary Accelerate credential".
Provisioning Prisma Postgres headless: CLI and API yes, MCP no
With a "Full Workspace" service token in PRISMA_SERVICE_TOKEN, npx prisma@8.0.0-rc.36 postgres create cli-db --region us-east-1 --json took 7.5 s and printed the URL once. postgres delete rejects --yes (CLI.CONSENT_REQUIRED) and runs only with --confirm <db id>. The REST API (api.prisma.io/v1) also accepted the token. The hosted MCP at mcp.prisma.io/mcp did not: 401 "Access token is missing required claims". It is OAuth-only, so an unattended agent can't use it.
Prisma Postgres gaps found while loading data
The server runs PostgreSQL 17.2, an old minor release. CREATE ROLE fails with ERROR: restricted superuser cannot create roles, and GRANT/REVOKE … ON SCHEMA public fails too. CREATE DATABASE works. One full pg_dump died mid-COPY with SSL connection has been closed unexpectedly. The next 5 logged dumps succeeded, so retry and check the output with pg_restore -l.
Terms of service
No benchmarking ban. ToS §15: "Automated scripts or bots accessing the Service must be approved in advance". Taken literally that covers any script; we treated plain DB clients at light volume as normal use.
Method
The workload scripts are shared and unchanged across providers (repro/workload/): Pagila 5ba5a57 plus a deterministic 1M-row table; S1 and Q1–Q5 run 100× after 3 warm-ups in one psql session; connect probes; up to 100 held sessions; pg_dump -Fc. We used one account and light load. Evidence is in repro/ (runs/, ops/, api/, screens/), with extra detail in repro/NOTES.md. Re-tested 2026-12-01. Outdated if Prisma changes Free plan limits, how operations are counted, or the PostgreSQL version.