Builder's DayFree, on demandWatch the talks

What does a small production app need from Postgres?

A small production app, one with its first 100 to 1,000 users, needs four things from Postgres: backups you have restored at least once, connection pooling, a spending limit or alert you have set, and monitoring that shows slow queries and connection counts. Read replicas, a second region and high availability can wait until a signal you can name says otherwise, such as reads that keep the primary busy after you have tuned them, or an uptime figure in a customer contract. Managed hosts such as Fly.io, Neon, Prisma Postgres, Railway, Render and Supabase handle these differently, so compare how far back each one restores and what you have to turn on yourself. Prisma Postgres fits when you want backups, pooling and query monitoring included, with no instance to size or upgrade: paid plans take daily backups on days with database activity, and PgBouncer pooling is on every plan.
By Gregory Boch8 min readUpdated

Start with the failures a small app is likely to meet: a mistaken DELETE, a migration that goes wrong, a connection limit reached during a launch, or a background job stuck in a loop. A second database server fixes none of those. The sections below cover what to set up first, what can wait and the signals that mean it's time, then how hosts compare and how to set this up on Prisma Postgres.

We make Prisma Postgres and Prisma Compute. Prisma ORM is optional: Prisma Postgres is managed PostgreSQL 17, and any Postgres client works. The host table compares Prisma Postgres with Fly.io, Neon, Railway, Render and Supabase.

PostgreSQL and provider behavior on this page links to each project's or provider's own pages, checked on October 30, 2026 unless a line gives a later date.

What does a small production app need first?

Work through this list before the first paying customer. Each item is done when the last column is true.

NeedWhat it protects againstDone when
BackupsData lost to a bad statement, script or migrationAutomated backups run, and you know how far back they reach
A restore drillA backup nobody can use under pressureYou have restored into a separate database, checked a known record and timed it
Connection poolingtoo many connections errors as traffic and instances growApp traffic uses the pooled connection, and migrations use the direct one
A spending limit or alertA bug that runs up usage overnightA limit or alert is set, and you know what stops when it's reached
MonitoringSlow pages and full connection pools that nobody noticesYou can list the slowest queries and see connections against your limit

Backups and a restore drill

A backup sets how much work you can lose. With daily backups, anything written since the last one is at risk. Point-in-time recovery lets you restore to a moment you choose, so it matters when a day of writes is too much to lose. Keep backups for at least as long as it can take someone to notice missing data.

Add a second copy you control: a pg_dump on a schedule, stored outside your host's account. The PostgreSQL docs say that, except in simple cases, pg_dump is generally not the right choice for regular production backups, so treat it as the extra copy and the host's backups as the main one.

Then restore one, as the restore guide shows: restore into a separate database, never over production, check a record you know should be there and write down how long it took. A read replica doesn't replace any of this, because it applies a mistaken DELETE too.

Connection pooling

Postgres accepts a fixed number of connections, and every running copy of your app holds its own. More instances, or a new client on every request, use them up, and then new connections fail. Create one client per process, send app traffic through your host's pooler and keep migrations and pg_dump on the direct connection, because a pooler in transaction mode doesn't keep session state between transactions. The connection guide covers pool sizes and how to count what's open.

A spending limit or alert

A database billed on usage can grow with a bug as well as with customers: a job that polls once a second makes about 2.6M queries a month. Decide before launch what should happen when the budget runs out. An alert keeps the app up and needs someone to act on it. A hard limit stops usage, and that can stop the app too.

Hosts differ here: Neon's spending notifications only send alerts, and consumption quotas set through its API suspend computes. Railway's usage limits shut down your workloads when usage exceeds the limit. Supabase's Spend Cap is on by default on the Pro Plan and doesn't cover compute. On Prisma Postgres, every paid plan includes a hard spend limit you set in the Console, and none applies until you do.

Monitoring

You need three views: the slowest and most frequent queries, connections against your limit, and storage against your plan. Add an outside check on a health endpoint, so that a monitor tells you about an outage before a customer does. The query monitoring guide compares what hosts show, the slow queries guide shows how to read it, and the health check guide covers the endpoint.

What can wait, and what says it's time?

Each of these adds cost and something new to run. Add one when you can name the signal, not because a checklist lists it.

FeatureWhat it helps withSignal that it's timeFix first
Read replicasReads that keep the primary busy, reports that slow the appPrimary CPU stays high, mostly from reads, after you've fixed the expensive queriesSlow queries, then a larger instance
A second regionReads for users far from the databaseDistant users are measurably slow with the app next to the database, and you can run app servers near themPut the app next to the database
High availabilityThe primary failingA few minutes of downtime would cost more than the extra servers, a contract names an uptime figure, or customers rely on the app at hours when nobody can respondA tested restore, a health check and retries on dropped connections

Read replicas

A replica adds read capacity, but it doesn't make a single query faster, it adds no write capacity and it copies a mistaken delete within seconds. A slow page at this size is usually a missing index or a query in a loop. Moving to a larger instance comes before a replica, because it needs nothing new in your code. On Prisma Postgres there is no instance to size or upgrade: Prisma scales the database for you. The read replica guide has the full decision table, a comparison of hosts and how to use a replica from TypeScript.

A second region

A second region shortens reads only when the code running them is there too, and writes still travel to the primary's region. Put the app and the database in the same region first, and measure from there with the regions guide. Data residency is a separate question, covered in the EU regions guide.

High availability

High availability means a second server can take over quickly when the primary fails. It shortens one kind of outage. It doesn't recover a mistaken DELETE, because the standby applies it too, and it doesn't help with a bad deploy or a full connection pool. At this size, a rehearsed restore and an app that reconnects cover more of the likely failures, so it can usually wait. The high availability guide covers what a standby protects, how long a failover takes, and when a new app needs one.

Hosts package it differently:

Whichever host you use, ask what happens when a node fails, how long recovery takes and whether your app has to reconnect. Then test that your app retries a dropped connection, which helps on any host.

How do managed Postgres hosts compare?

Hosts are listed alphabetically, and each row comes from the provider's own pages, checked on October 30, 2026 unless a cell gives a later date. Railway maintains its Postgres template; backups, point-in-time recovery, high availability and PgBouncer pooling are opt-in in its docs (checked 2026-10-30).

HostBackupsPoint-in-time recoveryConnection poolingRead replicas
Fly.io Managed PostgresAutomated, on every planfly mpg restore --pitr-time restores into a new cluster, within the cluster's recovery windowIncluded on every planNone; Fly.io says the replica in each cluster exists for failover (checked November 2, 2026)
NeonHistory window of up to 7 days on Launch and up to 30 days on ScaleInstant restore to a point in that window, at $0.20 per GB-monthOn every planOn every plan, in the same region as the database
Prisma PostgresDaily snapshots on days with database activity, kept 7 days on Starter and Pro and 30 on Business; none on FreeNo point-in-time recovery yet (it is coming in November 2026)PgBouncer on every planNone today; read replicas are planned for early 2027
RailwayDaily, weekly or monthly schedules, kept 6, 27 or 89 days; its pricing lists built-in database and volume backups on Pro and EnterpriseRestore window of roughly 4 weeks that starts once you turn it onPgBouncer you add to the databaseNone listed in its docs; high availability replicas take over on failover
RenderContinuous on paid databases; none on FreePast 3 days on a Hobby workspace, past 7 days on Pro or higher, restored into a new databasePgBouncer you turn on, on paid databasesUp to five with at least 10 GB of storage and a plan with at least 0.5 CPU
SupabaseDaily on paid plans: 7 days on Pro, 14 on Team; none on FreePaid add-on at $100 a month per 7 days of retention, on Pro and above (checked November 6, 2026)Shared pooler on every plan; dedicated PgBouncer on Pro and aboveRead Replicas on the primary's compute size, billed by the hour

Check Prisma pricing and each provider's pricing page for current plan costs before you choose.

How do I set this up on Prisma Postgres?

Nothing below needs Prisma ORM, because any Postgres client works, and these steps apply whichever host runs the app.

1. Move to a paid plan before customer data arrives

The Free plan has no backups. Starter is a $10 base and keeps daily snapshots, taken on days with database activity, for 7 days. If the app also runs on Prisma Compute, Compute usage is metered on top.

2. Use the pooled string for the app and the direct string for the rest

Generate a connection string in the Console. Both strings share the same credentials, and only the host differs:

.env
DATABASE_URL="postgres://USER:PASSWORD@pooled.db.prisma.io:5432/postgres?sslmode=require"
DIRECT_URL="postgres://USER:PASSWORD@db.prisma.io:5432/postgres?sslmode=require"

DATABASE_URL carries app traffic through PgBouncer, and DIRECT_URL is for migrations, pg_dump and pg_restore. Pooled limits are 10 connections on Free, 100 on Starter, 500 on Pro and 1,000 on Business, and direct limits are far lower, with 10 on Starter (pooling docs). Queries through the pooled connection are stopped after 10 minutes, so run longer jobs over the direct one.

3. Keep a dump outside your Prisma account

Use PostgreSQL 17 client tools and the direct string, on a schedule, from CI or a machine you control:

set -a; . ./.env; set +a
: "${DIRECT_URL:?Set DIRECT_URL first}"
umask 077
mkdir -p backups
pg_dump --dbname="$DIRECT_URL" --format=custom --file="backups/backup-$(date +%F).dump"

The file holds your customers' data, so store it with its own access control and an expiry.

4. Rehearse a restore

On a paid plan, open the database's Backups tab in the Console, select Restore backup next to a completed backup and choose Restore to a new database. The original database isn't touched, and the new one needs its own connection string. Check a record you know should be there, note how long it took and list what the snapshot doesn't contain. The restore guide has the full exercise.

5. Set a spend limit

Open Workspace Settings > Billing, find the Spending Limit card, enter an amount, click Set Limit and type the workspace name to confirm. Every paid plan includes a hard spend limit you set in the Console, and none applies until you do. The limit counts usage charges, not the plan fee. Workspace members get an email at 75%. At 100%, queries to the workspace's databases stop until you raise or remove the limit, so leave room above a normal month (billing docs).

6. Watch queries and connections

Query Insights is included at no extra cost. It groups queries by statement shape and shows each one's latency, execution count and reads, so you can find what to fix before you add capacity. Run the pg_stat_activity checks from the connection guide after a launch or a large import.

Where is Prisma Postgres the wrong choice?

For an app that has to restore to a particular moment today. Prisma Postgres restores from daily snapshots taken on days with database activity, so changes after the latest snapshot may not be restored, and it has no point-in-time recovery yet (it is coming in November 2026). If a day of writes is too much to lose, choose a host from the table above that offers it today.

For an app that already needs read replicas. Prisma Postgres has no read replicas today; they are planned for early 2027. If reads keep your primary busy after the fixes above, your reports have to run on current data away from the primary, or you serve reads from another region, choose a host that offers them. The read replica guide compares them.

For customer data on the Free plan. It has no backups, so use a paid plan, or a host and plan that fit your budget and include them.

Frequently asked questions

For most apps with their first 1,000 users, yes, if you can restore from a tested backup and the app reconnects after a dropped connection. Add servers when a specific signal appears, such as reads that keep the primary busy after tuning, or a contract that names an uptime figure. More servers don't help with a mistaken DELETE, a slow query or a full connection pool.

Check backups and limits first. Prisma Postgres Free and Supabase Free have no automatic backups, and Supabase pauses Free projects after a week of inactivity. A free Render database has no backups and expires 30 days after creation, and Render says not to use free instances for production. A free plan suits a prototype. For paying customers, use a paid plan, or at least run your own pg_dump on a schedule and store it away from the host. On Prisma Postgres, Starter and Pro keep daily snapshots for the last 7 days and Business for the last 30 days, and snapshots are created only on days when the database has activity.

Before the first paying customer, then after any large change to the schema, permissions or storage, because a restore that worked for the old setup proves little about the new one. A fixed rhythm, such as once a quarter, keeps the steps current and gives a second person the chance to run them.

The data moves with pg_dump and pg_restore, so the work is the cutover: stop writes, dump, restore and repoint the app. A dump is a snapshot of one moment, so writes stay stopped until the app points at the new database. Check two things first: pg_dump 17 can't dump a PostgreSQL 18 server, and a restore into Prisma Postgres uses --no-owner --no-privileges, so adapt any policies that name roles from the old host. The import guide has the steps. Host-specific features, such as a built-in auth service or data API, take longer to replace. Prisma Postgres is managed PostgreSQL 17 and Prisma ORM is optional, so your Postgres client keeps working after a move in either direction.

Start with backups you have restored

Prisma Postgres paid plans take daily snapshots, on days with database activity, that you can restore from the Console, with PgBouncer pooling and Query Insights included. Any Postgres client works; Prisma ORM is optional.