# DBLab vs PlanetScale: clones in seconds vs branches restored from backup

> PlanetScale for Postgres branches are separate deployments, empty or restored from a backup. DBLab makes thin clones of any Postgres in seconds on a machine you run.

Checked on 2026-11-18. Page: https://postgres.ai/compare/dblab-vs-planetscale. All comparisons: https://postgres.ai/compare.

## Short answer

PlanetScale for Postgres runs managed, highly available Postgres clusters. A PlanetScale branch is a separate database deployment: either empty, with no schema or data, or restored from a backup with schema and data, on its own development or production cluster. DBLab Engine is open-source software that makes full-size thin clones of any PostgreSQL on one machine you run, with copy-on-write so clones share one copy of the data. If production runs on PlanetScale, a branch restored from a backup gives a full, separate copy there. If production stays elsewhere, or you need many copies at once, DBLab clones it where it is.

## Where DBLab is ahead of PlanetScale

1. **The whole database, in seconds.**
   - DBLab: A clone takes a few seconds whatever the database size: under 2 seconds for a 10 TiB database with one user. ([DBLab Engine](https://postgres.ai/docs/database-lab), [DBLab data sources](https://postgres.ai/docs/dblab-howtos/administration/data))
   - PlanetScale: A PlanetScale Postgres branch with data is restored from a backup onto its own cluster. PlanetScale's example puts a restore within the 12-hour backup interval at typically minutes to under an hour; older points can need days of WAL replayed. [8][4]
2. **One copy of the data, many clones.**
   - DBLab: Clones share one physical copy on one machine and take extra disk space only for what they change. DBLab SE is billed by the size of that machine, not by database size or number of clones. ([DBLab Engine](https://postgres.ai/docs/database-lab), [Pricing](https://postgres.ai/pricing))
   - PlanetScale: Each PlanetScale branch is its own cluster and is billed for it. A branch restored from a backup inherits the parent's cluster size, and storage is charged for all production and development branches. [2][7]
3. **Clones the Postgres you already run.**
   - DBLab: Any PostgreSQL from version 10 up, wherever it runs: Amazon RDS, Aurora, Cloud SQL, Supabase or your own servers. ([DBLab data sources](https://postgres.ai/docs/dblab-howtos/administration/data), [Supported PostgreSQL versions and extensions](https://postgres.ai/docs/database-lab/supported-databases))
   - PlanetScale: PlanetScale branches belong to a PlanetScale database. A Postgres database on another provider is imported first, with pg_dump and pg_restore, WAL streaming or pgcopydb. [2][6]

## Try a clone before you install anything

```
dblab clone create --username dev --password "$PASSWORD" --id test
```

The public demo runs DBLab Engine: open it with the token demo-token, create a clone and connect to it. DBLab Engine is open source, so the next step is a machine of your own.

- [Open the DBLab demo](https://demo.dblab.dev)
- [Install DBLab Engine](https://postgres.ai/docs/dblab-howtos/administration/install-dle-manually)

## Side by side

| | DBLab | PlanetScale |
|---|---|---|
| What it is | Open-source software that gives every developer, CI job and AI agent a writable, full-size copy of a PostgreSQL database in seconds. Thin clones share one physical copy of the data on one machine. | PlanetScale for Postgres provides "fully-managed, high availability PostgreSQL database clusters". Branches are "isolated database deployments that provide you with separate environments for development and testing". [1][2] |
| Which databases it can copy | Any Postgres source: yes. Any PostgreSQL from version 10 up, wherever it runs. Managed services such as Amazon RDS, Aurora, Cloud SQL and Supabase are copied with dump and restore; self-managed servers can also be copied physically with WAL-G, pgBackRest or pg_basebackup. | Any Postgres source: partly. Branches belong to a PlanetScale database. An external Postgres gets there by import: pg_dump and pg_restore for smaller databases, WAL streaming (logical replication) for near-zero downtime, or pgcopydb for large databases. [2][6] |
| How a copy is made | Copy-on-write in the file system, with ZFS or LVM. Clones share unchanged blocks, so a clone takes extra disk space only for what it changes. | Each branch is its own deployment on its own cluster; "There is no data replication between branches." A branch with data is made by restoring a backup, using WAL replay for points in time between backups. [2][4] |
| Time to get a copy | A few seconds whatever the database size: under 2 seconds for a 10 TiB database with one user, up to 30 seconds with 15 users at once. The first copy of the source is slow; about 1 TiB an hour is a good speed. | The docs we read give no time in seconds. A branch with data is a restore from backup; time depends on cluster size, data volume and how far back you go. PlanetScale's example puts a restore within the 12-hour backup interval at "typically minutes to under an hour"; older points may need days of WAL replayed. [4][8] |
| Data in a copy | Full-size data: yes. The whole database as of the chosen snapshot. Physical mode can follow the source continuously; logical mode is refreshed in full, on a schedule. | Full-size data: partly. A branch from the Branches page "does not include schema or data". A branch restored from a backup "includes both the schema and the data for the selected backup", at any point from the oldest backup to 5 minutes ago. [2][4] |
| Masking sensitive data | Masking: yes. Documented options: load an anonymized dump, or apply SQL transformations or PostgreSQL Anonymizer before snapshots are taken. You define the rules. | Not documented in the sources we reviewed. A branch restored from a backup holds the same data as the source branch. [2][4] |
| CI and migration testing | CI integration: yes. DB Migration Checker runs pending migrations on a clone in CI, fails those that hold dangerous locks longer than a limit (10 seconds by default) and collects statistics. Any CI job can also create clones through the API or CLI. | CI integration: partly. The sources we reviewed do not describe a CI integration or migration check for Postgres branches. The pscale CLI creates branches, including from a backup. [5][2] |
| API, CLI and agent access | REST API, web UI and the dblab CLI. Joe, also available as pgai joe, returns EXPLAIN plans and timings from a clone, not rows. | The dashboard Branches page, the pscale CLI and a hosted MCP server. pscale branch create works for Postgres databases, with --from (parent branch), --restore (backup ID), --restore-point, --region and --cluster-size. The MCP server runs read or write queries on a branch, with access set per database. [2][5][10] |
| Where it runs | Self-hosted: yes. On a machine you control, in any cloud or on-premises. DBLab SE installs from the PostgresAI Console or AWS Marketplace. | Self-hosted: partly. A fully managed service in AWS, GCP and Azure. On the Enterprise plan, PlanetScale Managed deploys a single-tenant data plane for Postgres into your own AWS, GCP or Azure account, which PlanetScale operates. The sources we reviewed do not describe running it on your own servers. [1][3][9] |
| Open source | Yes. DBLab Engine is open source under Apache 2.0. | Not documented in the sources we reviewed for PlanetScale for Postgres. It runs PostgreSQL, which is open source. [1] |
| Documented limits | DBLab SE: 2,000 GiB per instance and a single user. All clones share one machine, and copy-on-write storage has different I/O performance, so timings on a clone should not be compared directly with production. | 100 development branches per database by default, settable from 1 to 5,000. Development branches have no replicas and 10 GB of egress a month. Restored branches stay in the source region, lose extensions and get new passwords. Default backups every 12 hours, kept 2 days. [2][7][4] |
| What you pay for | One machine and one physical copy of the data, however many clones run. DBLab SE is billed hourly by the size of that machine, not by database size or number of clones. | Each branch is billed for its own cluster size, plus storage, backups and egress. "You will be charged for the storage consumed by all production and development branches." Development branches are billed only while used; a new one starts as a single-node PS-DEV cluster that begins at $5/month, depending on the region. [2][3][7] |

## When PlanetScale is the better choice

- Your database already runs on PlanetScale. A branch restored from a backup is a full, separate deployment of your data, with any point in time from the oldest backup to 5 minutes ago.
- A restored branch has its own cluster, so tests on it do not share I/O with other copies. Production branches can have two replicas for high availability.
- Development branches run on PS-DEV instances and are billed only for the time they are used. Up to 100 development branches per database by default, configurable up to 5,000.
- The pscale CLI creates branches on Postgres databases, from a parent branch or from a backup ID, in a chosen region and cluster size.
- PlanetScale for Postgres runs in AWS, GCP and Azure, with a Metal tier on local NVMe storage; a single-node cluster starts at $5/month.

## Pricing

| Product | Plan | List price | Notes |
|---|---|---|---|
| DBLab | DBLab Engine | Free | Open source, Apache 2.0; you run it |
| DBLab | DBLab SE | From $62/month | Billed hourly by machine size, plus your own cloud costs; 2,000 GiB limit; single user |
| DBLab | DBLab EE | Custom | Annual contract, from $0.2662 per 100 GiB per hour; unlimited database size, SSO |
| PlanetScale | PS-5 single node | $5/month | 1/16 vCPU, 512 MiB RAM, AWS us-east-1; extra storage, backups and egress billed separately [11][1] |
| PlanetScale | PS-5 highly available | $15/month | Primary and two replicas, 1/16 vCPU, 512 MiB RAM each, AWS us-east-1 [11] |
| PlanetScale | Metal M-10 highly available | $50/month | Primary and two replicas, arm64, 1/8 vCPU, 1 GiB RAM, 10 GiB local NVMe included, AWS us-east-1 [11] |

DBLab prices: https://postgres.ai/pricing. Prices are per cluster, so each branch adds the cost of its own cluster. Backup storage beyond 2x disk size is $0.023 per GB-month; private-network egress is $0.01 per GB.

## Questions

### Does a PlanetScale Postgres branch include my data?

Only when restored from a backup. A branch created from the Branches page has no schema or data. A branch restored from a backup includes both, as of the chosen backup or point in time. [2][4]

### Can PlanetScale branch a database that runs on Amazon RDS?

Not in place. Branches belong to a PlanetScale database, so the data is imported first with pg_dump and pg_restore, WAL streaming or pgcopydb. DBLab clones an RDS database where it is, by dump and restore onto a machine you run. [2][6]

### What does a PlanetScale Postgres branch cost?

Each branch runs on its own cluster and is billed for that cluster, plus storage for all branches, backups and egress. Clusters start at $5/month single node and $15/month highly available (PS-5, AWS us-east-1). Development branches use PS-DEV instances, billed only while used. [2][3][7]

### How long does it take to create a PlanetScale Postgres branch with data?

A branch with data is restored from a backup, and the time depends on cluster size, data volume and how far back you restore. PlanetScale's example puts a restore within the default 12-hour backup interval at typically minutes to under an hour; older points can need days of WAL replayed. A DBLab clone takes a few seconds whatever the database size. [8][4]

## Sources for DBLab

- [DBLab Engine](https://postgres.ai/docs/database-lab)
- [DBLab data sources](https://postgres.ai/docs/dblab-howtos/administration/data)
- [Pricing](https://postgres.ai/pricing)
- [Supported PostgreSQL versions and extensions](https://postgres.ai/docs/database-lab/supported-databases)
- [DBLab Engine product page](https://postgres.ai/products/dblab_engine)
- [Full refresh in logical mode](https://postgres.ai/docs/dblab-howtos/administration/logical-full-refresh)
- [Data masking and obfuscation](https://postgres.ai/docs/database-lab/masking)
- [DB Migration Checker](https://postgres.ai/docs/database-lab/db-migration-checker)
- [Joe commands: what is returned](https://postgres.ai/docs/reference-guides/joe-bot-commands-reference)
- [Run Joe from the CLI](https://postgres.ai/docs/postgresai-howtos/joe-cli)
- [Query timing on clones and in production](https://postgres.ai/docs/database-lab/timing-estimator)

## Sources for PlanetScale

1. [PlanetScale for Postgres](https://planetscale.com/postgres)
2. [PlanetScale docs: Postgres branching](https://planetscale.com/docs/postgres/branching)
3. [PlanetScale pricing](https://planetscale.com/pricing)
4. [PlanetScale docs: Postgres backups](https://planetscale.com/docs/postgres/backups)
5. [PlanetScale CLI: branch](https://planetscale.com/docs/cli/branch)
6. [PlanetScale docs: Postgres imports](https://planetscale.com/docs/postgres/imports/postgres-imports)
7. [PlanetScale docs: Postgres pricing](https://planetscale.com/docs/postgres/pricing)
8. [PlanetScale docs: Postgres point-in-time recovery](https://planetscale.com/docs/postgres/backups/point-in-time-recovery)
9. [PlanetScale docs: PlanetScale Managed overview](https://planetscale.com/docs/plans/managed)
10. [PlanetScale docs: MCP server](https://planetscale.com/docs/mcp-server)
11. [PlanetScale pricing catalog (pricing.md)](https://planetscale.com/pricing.md)

## How we compare

These pages compare what each product does for PostgreSQL; other databases and the rest of the stack are out of scope. What we say about the other product comes from its own documentation, pricing page, changelog or source repository, read on the date shown; each row cites its source. "Not documented" means we did not find it in those sources, not that the product cannot do it. Prices are list prices and the billing units differ, so they are not a total-cost comparison. Product names are trademarks of their owners.
