# DBLab vs Atlas: run a change on real data vs plan and lint it

> Atlas plans, lints and applies schema changes as code, verified on an empty dev database. DBLab runs the result on a full-size clone and measures the locks it holds.

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

## Short answer

Atlas manages schemas as code: a declarative workflow that diffs a desired schema against the database, and a versioned workflow with planned, linted migration files. Its Pro analyzers predict PostgreSQL lock and rewrite risks from the SQL, and it verifies changes on a dev database, which must be empty. DBLab does not write, plan or deploy migrations. It gives you a full-size thin clone of a PostgreSQL database where a change runs on real data, so you see its duration and locks. The two fit together: Atlas plans and lints, DBLab runs the result on a clone.

## What DBLab adds to Atlas

1. **Runs the migration on full-size data.**
   - DBLab: DB Migration Checker applies pending migrations to a full-size clone in CI and collects statistics from the run. ([DB Migration Checker](https://postgres.ai/docs/database-lab/db-migration-checker))
   - Atlas: Atlas verifies changes on a dev database, which it requires to be empty. Datasets can load sampled rows from an RDS snapshot export, CSV files or synthetic data, but they are in preview for a subset of Teams and Enterprise customers. [5][7]
2. **Measures the locks a migration holds.**
   - DBLab: The checker fails a migration that holds a dangerous lock longer than a limit, 10 seconds by default. ([DB Migration Checker](https://postgres.ai/docs/database-lab/db-migration-checker))
   - Atlas: Atlas Pro analyzers predict locks from the SQL (PG101 to PG109, PG301 to PG320). Profiling measures lock time on the dev database during a test, but it is in preview, and the docs say empty tables make every lock short. [3][6]
3. **Open source and self-hosted.**
   - DBLab: DBLab Engine is open source under Apache 2.0 and runs in any cloud or on-premises. ([DBLab Engine](https://postgres.ai/docs/database-lab))
   - Atlas: The Atlas Community Edition is Apache 2.0 but omits linting, testing, schema plan, drift detection and down migrations. The standard binary is under the Atlas MSA, and migrate lint needs Atlas Pro since v0.38. [8][4]
4. **Run it again from the same state.**
   - DBLab: On a clone, reset returns the data to the snapshot, so a migration can be run again. ([How to reset a DBLab clone](https://postgres.ai/docs/dblab-howtos/cloning/reset-clone))
   - Atlas: atlas migrate down reverts changes applied by the migration directory, computing the plan from the current database state; it is not in the Community Edition. Atlas describes its history model as roll-forward by default. [13][8]

## 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 | Atlas |
|---|---|---|
| What it is | Thin clones of a full-size PostgreSQL database, used to run a schema change on real data before it ships. DBLab does not write, order or deploy migrations. | A language-independent tool for managing and migrating database schemas. The declarative workflow works like Terraform: it compares the database with the desired schema, then plans and applies the difference. The versioned workflow plans, lints and applies migration files. Schemas are written in HCL, SQL or an ORM. [1] |
| Runs the change on full-size data | Runs on full-size data: yes. DB Migration Checker applies pending migrations to a full-size clone in CI and collects statistics from the run. | Runs on full-size data: preview. Tests run on the dev database, which Atlas requires to be empty. Datasets can load rows from an Amazon RDS snapshot export, CSV files or synthetic data, optionally sampled; the docs say a test rarely needs the whole export. Datasets are in preview for a subset of Teams and Enterprise customers. [5][6][7] |
| Lock and downtime risk | Measures locks: yes. Measured on the clone: the checker fails a migration that holds a dangerous lock longer than a limit, 10 seconds by default. | Measures locks: preview. Predicted from the SQL by Pro analyzers: PG101 to PG109 for index and constraint builds that lock the table, PG301 to PG320 for blocking and table-rewrite changes. Measured with --profile, which reports the locks each statement takes and for how long on the dev database, and can fail a test past a set bound; profiling is in preview, and the docs say empty tables make every lock short. [3][6] |
| Static review and lint rules | Lint rules: no. None. DBLab runs the change; it does not lint SQL. | Lint rules: yes. atlas migrate lint analyzes migration files for destructive, data-dependent, backward-incompatible and locking changes. Since v0.38 it is available only to Atlas Pro users. The concurrent index, blocking and nested transaction analyzers are marked Pro; destructive and data-dependent checks are not. [4][3] |
| Writing, versioning and deploying migrations | Deploys migrations: no. Not provided. Keep your migration tool; a clone is an ordinary PostgreSQL server that any tool can connect to. | Deploys migrations: yes. Versioned: Atlas plans migration files from schema changes, then lints and applies them; each file runs in its own transaction by default. Declarative: atlas schema apply moves the database to the desired state, and Pro users can pre-plan, review and approve the plan first. [1][12][11] |
| Approvals and audit trail | Approval workflow: no. Not a change-approval system. DBLab EE adds SSO, user management and audit for access to clones. | Approval workflow: yes. atlas schema plan, Pro only, stores a plan in the Atlas Registry, where it is approved from the CLI, the Registry UI or a pull request workflow; a lint-review policy asks for human review only when the linter finds issues. Protected Flows limit who can push or approve. Audit trails are listed on Pro. [11][2] |
| Rollback | Not provided for production. On a clone, reset returns the data to the snapshot, so a migration can be run again. | Migration files are roll-forward in a linear history, but atlas migrate down can revert changes made by specific files. Down migrations are among the features the open-source Community Edition omits. [13][8] |
| CI integration | The checker runs in CI; the documented example uses GitHub Actions. Any pipeline can also create clones through the API or CLI. | GitHub Actions for migrate lint, test, apply, down and drift and for schema plan, lint, test and apply; the drift actions need an Atlas Pro cloud token. The docs also list GitLab CI Components, CircleCI Orbs, Bitbucket Pipes and Azure DevOps. [9][4] |
| Open source and hosting | Open source: yes. Open source under Apache 2.0, self-hosted in any cloud or on-premises. | Open source: partly. The CLI source on GitHub is under Apache 2.0, and a Community Edition built from it omits linting, testing, schema plan, drift detection, down migrations, integrations and database objects such as views, triggers and functions. The standard binary adds proprietary features and is free to download under the Atlas MSA; atlas login unlocks Pro. Atlas Cloud hosts the Registry, Pipelines and schema monitoring. [8][10][2] |

## What Atlas does that DBLab does not

- Atlas is the change process itself: declarative schema-as-code in HCL, SQL or an ORM, or versioned migration files that it plans for you. DBLab covers none of these steps.
- PostgreSQL-specific Pro checks name the lock or rewrite a statement causes, such as PG101, an index built without CONCURRENTLY, and PG305, a CHECK constraint that requires a full table scan.
- Profiling, in preview, measures the locks, rewrites and disk use of each statement during a test, and an expect "profile" block can fail the test when a lock lasts longer than a bound.
- Pro adds schema plans that are reviewed and approved in pull requests or the Atlas Registry, drift detection and audit trails.
- GitHub Actions cover lint, test, plan, apply and drift, and the docs list GitLab CI, CircleCI, Bitbucket Pipes and Azure DevOps integrations.

## 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 |
| Atlas | Starter | Free | Includes PostgreSQL; ORM integration, migration planning and execution; basic database features [2] |
| Atlas | Pro | $9 per user/month | Up to 50 seats; migration linting, drift detection, schema policy, audit trails; usage-based charges on top [2] |
| Atlas | Atlas Pipelines (Pro) | $59 per project/month | Includes 2 target databases; $39/month per additional target; 90-day history [2] |
| Atlas | Schema Monitoring (Pro) | $39 per monitored database/month | Schema changelog, ERD, lineage, drift detection and alerts [2] |
| Atlas | Enterprise | Custom | Starting from 20 databases; SSO, air-gapped deployment, offline licenses [2] |
| Atlas | Community Edition | Free | Open source, Apache 2.0; omits linting, testing, schema plan, drift detection and down migrations [8] |

DBLab prices: https://postgres.ai/pricing. Atlas Pro prices per user, plus usage-based charges for CI/CD pipelines and monitored databases. DBLab SE is billed by machine size.

## Using both

The two cover different steps of the same change. Atlas plans the migration and atlas migrate lint flags statements that will take locks or rewrite tables, using an empty dev database to verify it. A CI job then creates a DBLab clone through the API or CLI and applies the same migration to it, so the team sees how long it takes and which locks it holds on full-size data; reset returns the clone to its snapshot for the next run. After merge, Atlas applies the change to production. DBLab does not deploy anything.

## Questions

### Is Atlas open source?

The CLI source on GitHub is under Apache 2.0, and Ariga publishes a Community Edition built from it. That edition omits many commands, including migration linting, testing and down migrations, and support for database objects such as views, triggers and functions. The standard binary includes proprietary features and is free to download under the Atlas MSA. [8][10]

### What is the Atlas dev database, and is it production data?

No. The docs describe it as a temporary, isolated database that Atlas uses as a sandbox to simulate the real environment, and Atlas rejects a dev database that already contains objects. It can be a Docker container such as docker://postgres/15/dev. Atlas uses it to plan, normalize and verify changes, not to hold production data. [5]

### Does Atlas measure locks on real data?

Its Pro analyzers predict locks from the SQL. The --profile flag measures the locks each statement takes on the dev database and can fail a test past a set bound, but it is in preview, and the docs note that on an empty table every lock is short, so tables should be loaded first. Datasets that load sampled RDS exports or synthetic rows are also in preview. [3][6][7]

### What does Atlas cost?

Starter is free and includes PostgreSQL. Pro is $9 per user per month, plus $59 per project per month for Atlas Pipelines with 2 target databases and $39 per monitored database per month for schema monitoring. Enterprise is custom, starting from 20 databases. [2]

### Can I use DBLab and Atlas together?

Yes. Atlas plans and lints the migration; a DBLab clone is an ordinary PostgreSQL server, so CI can apply the same migration to a clone to see duration and locks on full-size data before Atlas applies it to production. DBLab does not plan or deploy migrations, so it does not replace Atlas. [4][12]

## Sources for DBLab

- [DB Migration Checker](https://postgres.ai/docs/database-lab/db-migration-checker)
- [DBLab Engine](https://postgres.ai/docs/database-lab)
- [How to reset a DBLab clone](https://postgres.ai/docs/dblab-howtos/cloning/reset-clone)
- [Database migration testing](https://postgres.ai/products/database-migration-testing)

## Sources for Atlas

1. [Atlas docs: introduction](https://atlasgo.io/docs)
2. [Atlas pricing](https://atlasgo.io/pricing)
3. [Atlas docs: lint analyzers](https://atlasgo.io/lint/analyzers)
4. [Atlas docs: migrate lint](https://atlasgo.io/versioned/lint)
5. [Atlas docs: dev database](https://atlasgo.io/concepts/dev-database)
6. [Atlas docs: profiling migrations](https://atlasgo.io/testing/profile)
7. [Atlas docs: test datasets](https://atlasgo.io/testing/datasets)
8. [Atlas Community Edition](https://atlasgo.io/community-edition)
9. [Atlas docs: GitHub Actions](https://atlasgo.io/integrations/github-actions)
10. [Atlas repository on GitHub](https://github.com/ariga/atlas)
11. [Atlas docs: schema plan](https://atlasgo.io/declarative/plan)
12. [Atlas docs: applying versioned migrations](https://atlasgo.io/versioned/apply)
13. [Atlas docs: down migrations](https://atlasgo.io/versioned/down)

## 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.
