Database as a service (DBaaS): what it is, what it costs and when to self-host
Database as a service (DBaaS) means a provider runs the database and you get a connection string. The provider owns the servers and the disks. It installs and patches the database software, takes the backups and replaces a machine that fails.
You still design the tables, write the queries and choose how big the database is. You pay a monthly price, usually for an instance size plus the storage it holds.
This guide covers what a DBaaS provider does, what stays your job, what a small and a mid-size Postgres cost on eight providers, and when running Postgres yourself is the better call.
The short version
- A DBaaS provider handles backups, point-in-time recovery, patching and failover. How much of that comes in the base price varies a lot.
- You still own the schema, the queries, the indexes, the connection count and the size you pay for.
- A 1 GB Postgres with 10 GB of storage runs from $10.50 a month on Ownkube to $40.80 on Fly Managed Postgres.
- A 4 GB Postgres with 50 GB of storage runs from $40.50 on Ownkube to $296 on Fly, which has no plan between 2 GB and 8 GB.
- Self-hosting makes sense when someone on the team already runs Postgres, or when you need settings and extensions a provider won't give you.
What a DBaaS provider runs for you
| The provider runs | You still own |
|---|---|
| Servers, disks and the network | Schema and migrations |
| Installing and patching Postgres | Queries and indexes |
| Scheduled backups | Connection count and pooling |
| Point-in-time recovery | Instance size and storage |
| Failover to a standby, where you pay for one | Your data and what you keep of it |
Backups
The provider copies the database on a schedule and keeps the copies for a set number of days. You never write a cron job, rotate files or check that a dump finished.
Read the fine print on two things: whether backups are on by default, and whether they cost extra. On Ownkube they are included in the storage price on the Personal and Team plans and turned on per database. Supabase includes daily backups on Pro and sells point-in-time recovery separately.
Point-in-time recovery
A nightly backup can only take you back to last night. Point-in-time recovery (PITR) also keeps the write-ahead log, the record of every change, so you can restore the database to a chosen minute. That's the feature you want after someone runs a DELETE without a WHERE clause at 14:05.
Prices for it range widely: Ownkube's 7-day PITR is part of the $0.25 per GB storage price, and Supabase charges $100 a month for each 7 days of retention.
Patching and upgrades
Postgres ships minor releases with bug and security fixes several times a year. A DBaaS applies them for you, usually in a maintenance window with a short restart. Major versions, such as moving from 17 to 18, change the on-disk format, so most providers let you choose when to run them.
Failover
A single database instance is one machine. If it fails, the provider replaces it and the database comes back, but writes stop while that happens. A standby is a second copy kept in sync by streaming replication, and on a failure the provider promotes it to primary.
A standby costs about as much as the primary. On AWS RDS, Multi-AZ doubles the instance and storage price. On Ownkube each standby bills as its own box plus its own storage. Fly includes high availability in every Managed Postgres plan, which is part of why its prices start higher.
What you still own
Schema and migrations
The provider keeps Postgres running. It has no view on whether your tables make sense. Every migration, every new column and every change to a hot table is still a decision your team makes and tests.
Queries and indexes
Most slow databases are slow because of a missing index or a query that reads far more rows than it returns. A bigger instance hides that for a while and raises the bill. Run EXPLAIN ANALYZE on the slow queries first, and add an index before you add memory.
Connection limits
Each Postgres connection is its own process with its own memory, so small instances accept fewer connections. Render lists 100 connections on its small and mid-size plans. An app that opens a connection per request, or many app replicas each holding a pool, can hit that ceiling long before the CPU is busy.
Use a connection pool in your app, or a pooler such as PgBouncer in front of the database. Some providers run the pooler for you.
Size and storage
You pick the instance, and you pay for it whether the database is busy or idle. Storage only grows, and most providers make shrinking a disk hard. Start small, watch memory and disk, and move up a size when the graphs say so.
DBaaS pricing: a 1 GB and a 4 GB Postgres on eight providers
The prices below come from each provider's own pricing page as of 2026-11-25. They are list prices in USD a month for a single instance, without taxes or bandwidth.
| Provider | 1 GB memory, 10 GB storage | 4 GB memory, 50 GB storage |
|---|---|---|
| Ownkube | $10.50 (DB 1) | $40.50 (DB 4) |
| Railway | $13.50 (usage) | $49.50 (usage) |
| AWS RDS | $13.98 (db.t4g.micro) | $53.20 (db.t4g.medium) |
| DigitalOcean | $15.15 (1 GiB node) | $60.90 (4 GiB node) |
| Render | $22.00 (0.5c-1g) | $70.00 (1c-4g) |
| Neon | $22.85 (Launch, 0.25 CU always on) | $94.88 (Launch, 1 CU always on) |
| Supabase | $25.25 (Pro + Micro) | $80.25 (Pro + Medium) |
| Fly Managed Postgres | $40.80 (Basic) | $296.00 (Launch, 8 GB) |
AWS RDS is US East (N. Virginia), Single-AZ, on gp3 storage, which starts at 20 GB, so the small database pays for 20 GB. Railway assumes 0.1 vCPU of average database CPU, and each extra 0.1 vCPU adds about $2. Neon is modelled always on. DigitalOcean includes 10 GiB of storage on the 1 GiB node and 60 GiB on the 4 GiB node. Supabase includes 8 GB of disk and $10 of compute credit in Pro.
The headline price leaves out what each provider includes. Ownkube includes 7-day PITR in the storage price on Personal and Team, Supabase adds $100 a month for the same 7 days, and Fly includes backups and high availability in every plan.
High availability is the biggest swing: RDS Multi-AZ doubles the instance and the storage, which takes the 4 GB database to about $106 a month. Neon and Railway go the other way, because they bill by what the database uses, so a quiet database costs less than the always-on figures here.
For any other size, try the managed Postgres cost calculator. The managed Postgres pricing comparison explains how each provider's model works, and Supabase pricing explained walks through the plan fee and compute sizes in detail.
Ownkube's database boxes
Ownkube Compute runs managed Postgres (version 17 or 18) on fixed-size database boxes. You pay a flat monthly price for the box, plus $0.25 per GB of storage.
| Box | vCPU | Memory | Price a month |
|---|---|---|---|
| DB 0.5 | 0.25 | 0.5 GiB | $4 |
| DB 1 | 0.5 | 1 GiB | $8 |
| DB 2 | 1 | 2 GiB | $12 |
| DB 4 | 1 | 4 GiB | $28 |
| DB 8 | 2 | 8 GiB | $54 |
| DB 16 | 4 | 16 GiB | $104 |
What you get depends on the plan:
| Plan | Databases |
|---|---|
| Pay as you go | Up to DB 1, without backups |
| Personal, $5 a month (loads $5 of wallet credit) | Every size, plus 7-day backups with point-in-time restore |
| Team, $20 a month (loads $20 of wallet credit) | Everything in Personal, plus up to two standbys per database with automatic failover |
Backups are off by default, and you turn them on per database. Turning them on or off restarts the database. Each standby bills as its own box plus its own storage, so a DB 4 with 50 GB and one standby comes to $81 a month.
Databases run in two regions, Germany and Mumbai. A database is private to your apps by default, and you can open public access per database when an outside tool needs to connect.
When to self-host Postgres instead
A DBaaS is the right default for most small teams. Backups that stopped running weeks ago or a disk that filled overnight usually go unnoticed until the day you need a restore, and the provider watches for both. Self-hosting is a better fit in a few cases.
Someone on the team already runs Postgres
If a teammate has set up streaming replication, tested a restore and tuned postgresql.conf before, the provider's main value shrinks. You trade a monthly markup for their time, and that can be a good trade.
You need what providers won't allow
Managed Postgres limits superuser access, the extensions you can install and some server settings. An app that depends on a custom extension, a specific build or deep tuning may only run on a server you control.
The data is large and steady
Provider storage rates run from $0.125 to $0.35 per GB a month. A database that holds a few terabytes and changes little can cost much less on a server with large local disks. That holds only while someone keeps its backups and restores tested.
It's a throwaway database
Local development, CI and short-lived test databases don't need backups or failover. Postgres in a container is enough. Our Postgres in Docker guide covers that setup.
For a production database with no one on call, the arithmetic usually favours a provider. A missed backup, a full disk or a failed upgrade costs more than a year of the price difference. If you want failover on your own servers, read Postgres high availability first to see what it takes.
Checklist: choosing a DBaaS or self-hosting
- Price the size you need today and the one you'll need in a year, with storage, on the cost calculator.
- Check whether backups are included, on by default and kept for long enough.
- Check whether point-in-time recovery is included or sold separately, and how many days it keeps.
- Decide whether you need a standby now, and price it. For most first databases, tested backups matter more.
- Find the connection limit for your size and plan how your app will pool connections.
- Confirm the Postgres versions on offer and how major upgrades are run.
- Check the regions, and keep the database in the same region as the app that queries it.
- Make sure you can export the data with
pg_dumpand connect from your own tools. - Restore a backup once before you depend on it, whichever route you choose.
- If you self-host, name the person who patches it, watches the disk and answers when it's down.
FAQ
What is DBaaS in simple terms?
A database someone else runs. You connect to it and use it like any database, and the provider looks after the servers, backups, updates and recovery.
Is DBaaS the same as managed Postgres?
Managed Postgres is DBaaS for one engine. The term also covers managed MySQL, MongoDB, Redis and others. This guide prices Postgres, because it's what most new apps start on.
Is serverless Postgres a DBaaS?
Yes. Neon bills compute by the hour it runs, so a database that sits idle costs less than the always-on figures in the table above. The provider still handles backups, patching and recovery.
Do I need a standby from day one?
Usually not. A single instance with backups and point-in-time recovery covers most failures for a small app. Add a standby when the cost of a few minutes of downtime is higher than the price of a second box.
Can I move off a DBaaS later?
Yes. pg_dump and pg_restore move a database between any two Postgres hosts, and logical replication can keep the new copy in sync for a short switch-over. Check that your provider lets you connect from outside, since that's how the data leaves.
Where Ownkube fits
Ownkube Compute runs your app and its Postgres side by side, on servers we run. A database box starts at $4 a month, storage is $0.25 per GB, and 7-day backups with point-in-time restore are part of that storage price on Personal and Team. See Postgres hosting on Ownkube for the details.
If a client later needs everything inside their own AWS account, the same app moves there with no rewrite. Deploy my first app.