# DBLab vs Liquibase: run a change on a clone, ship it with changelogs

> Liquibase tracks, versions and deploys schema changes from changelogs. DBLab, open source under Apache 2.0, runs the changelog on a full-size clone first.

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

## Short answer

Liquibase writes, orders and deploys schema changes: changesets in SQL, XML, YAML or JSON changelogs, preconditions, rollback commands and an update-sql preview, with policy checks and drift reports in the commercial Liquibase Secure. DBLab does none of that. It gives you a full-size thin clone of a PostgreSQL database where a change can be run to see how long it takes and which locks it holds. The two fit together: run the changelog against a clone in CI, then let Liquibase deploy it.

## What DBLab adds to Liquibase

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))
   - Liquibase: Liquibase update-sql prints the SQL an update will run so you can inspect it; its docs say the command does not check SQL for correctness and does not anticipate deployment errors. Liquibase runs changes on the database you point it at. [6]
2. **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))
   - Liquibase: Liquibase Community 5.0 and later is under the Functional Source License, which bars competing commercial use; each release reverts to Apache 2.0 two years after it ships. Liquibase Secure is commercially licensed. [1][3]
3. **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))
   - Liquibase: Liquibase rollback, rollback-to-date and rollback-count are in every edition. Undoing a single changeset or a single deployment (rollback-one-changeset, rollback-one-update) is Liquibase Secure only. [7]
4. **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))
   - Liquibase: Liquibase Secure policy checks inspect changelogs and SQL before deploy, with defaults that warn on dropped tables and columns, truncates and data type changes. The sources we reviewed do not describe a check for the locks a change takes. [8][14]

## 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 | Liquibase |
|---|---|---|
| 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 tool to track, version and deploy database schema changes. Liquibase Community is the free edition. Liquibase Secure is the commercial edition, sold as Change Automation, Change Governance (policies) and Change Intelligence (deployments, drift and history). [3][2][11] |
| 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. | Not documented in the sources we reviewed. update-sql prints the SQL an update will run so you can evaluate it; the docs say it does not check SQL for correctness and does not anticipate deployment errors. Liquibase runs changes on whatever database you point it at. [6] |
| 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. | Not documented in the sources we reviewed. The policy checks we read warn about data loss and type changes (ChangeDropTableWarn, ChangeDropColumnWarn, ChangeTruncateTableWarn, ModifyDataTypeWarn); none of them is described as a check for table locks. [8][14] |
| Static review and lint rules | Lint rules: no. None. DBLab runs the change; it does not lint SQL. | Lint rules: yes. Policy checks inspect changelogs, changesets and SQL before a change deploys; each triggered check returns the exit code set for its severity, which can stop a pipeline. Default checks include warnings on dropped tables and columns, changed data types and Postgres reserved keywords in object names. They are a Liquibase Secure feature: the pricing page lists Change Governance as none for Community. [8][13][2] |
| 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. Changes are changesets in a changelog written in SQL, XML, YAML or JSON. Liquibase records deployed changesets in the DATABASECHANGELOG table. Preconditions such as tableExists or rowCount decide whether a changeset runs, and update-sql previews the SQL before update. [4][5][6] |
| Approvals and audit trail | Approval workflow: no. Not a change-approval system. DBLab EE adds SSO, user management and audit for access to clones. | Not documented in the sources we reviewed as an approval workflow. Change Intelligence, on the Team, Business and Enterprise plans, shows deployments, policy outcomes, drift, failures and change history; role-based access control is listed on Business and Enterprise. [2][11] |
| Rollback | Not provided for production. On a clone, reset returns the data to the snapshot, so a migration can be run again. | rollback, rollback-to-date and rollback-count, each with a -sql preview, are in all editions including Community. rollback-one-changeset and rollback-one-update, which undo a single changeset or deployment, are Liquibase Secure only. [7] |
| CI integration | The checker runs in CI; the documented example uses GitHub Actions. Any pipeline can also create clones through the API or CLI. | The liquibase/setup-liquibase GitHub Action installs Community or Secure (version 4.32.0 or later) on a runner. In Liquibase Secure, a drift run can be marked as failed when drift meets a --drift-severity threshold. [10][9] |
| Open source and hosting | Open source: yes. Open source under Apache 2.0, self-hosted in any cloud or on-premises. | Open source: partly. Community is a CLI you run yourself; Liquibase Secure adds a server hosted inside your own network. Since 5.0 (announced September 30, 2025) Community is under the Functional Source License: free in production, but third parties may not commercialize it in competition with Liquibase; each release reverts to Apache 2.0 after two years. Earlier releases stay Apache 2.0. [1][3][11] |

## What Liquibase does that DBLab does not

- Liquibase is the change process itself: changesets in a changelog, a DATABASECHANGELOG table that records what ran, update, rollback and preview commands. DBLab covers none of these steps.
- Rollback commands (rollback, rollback-to-date, rollback-count) and their SQL previews are in every edition, including Community.
- Supports PostgreSQL 12 to 18, with connection guides for PostgreSQL on Amazon RDS, Aurora PostgreSQL, Azure Database for PostgreSQL and Google Cloud SQL.
- Liquibase Secure adds policy checks on changelogs before deploy, such as warnings on dropped tables and changed data types, and drift detection with dashboards.
- Liquibase Community is free to use in production; each release moves to Apache 2.0 two years after it ships.

## 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 |
| Liquibase | Community | Free | Functional Source License since 5.0, Apache 2.0 after two years [1][2] |
| Liquibase | Secure Starter | No public price | Companies under $1B revenue; 250 database targets; Change Automation and Change Governance, no Change Intelligence or RBAC [2] |
| Liquibase | Secure Team | No public price | 500 database targets; adds Change Intelligence [2] |
| Liquibase | Secure Business | No public price | 750 database targets, RBAC, premium support with 24/7 SLA [2] |
| Liquibase | Secure Enterprise | No public price | 2,000 database targets, RBAC, premium support with 24/7 SLA [2] |

DBLab prices: https://postgres.ai/pricing. Each Liquibase Secure plan requires a Professional Services package. Secure plans are sized by database targets, with more capacity available on every plan; DBLab SE is billed by machine size.

## Using both

The two cover different steps of the same change. A developer adds a changeset to the changelog and opens a pull request. In CI, a job creates a DBLab clone through the API or CLI and runs liquibase update against it, so the team sees how long the change takes and which locks it holds on full-size data; reset returns the clone to its snapshot for the next run. After merge, Liquibase deploys the changelog to production and records it in DATABASECHANGELOG. DBLab does not deploy anything.

## Questions

### Is Liquibase open source?

Releases before 5.0 are under Apache 2.0. Starting with 5.0, announced on September 30, 2025, Liquibase Community is under the Functional Source License: you can use and modify it in production, but third parties cannot commercialize it in competition with Liquibase. Each release reverts to Apache 2.0 two years after it ships. Liquibase Secure is commercially licensed. [1][3]

### Does Liquibase test a migration on production-size data?

The sources we reviewed do not describe that. update-sql prints the SQL an update would run, and the docs say it does not anticipate deployment errors. Liquibase runs changes on the database you point it at, so it can run against a DBLab clone. [6]

### What does Liquibase cost?

Community is free. The four Liquibase Secure plans, Starter, Team, Business and Enterprise, are each quoted, sized by database targets, and require a Professional Services package. Starter is for companies under $1B in revenue. [2]

### Can I use DBLab and Liquibase together?

Yes. A DBLab clone is an ordinary PostgreSQL server, so a CI job can run liquibase update on a clone to see duration and locks on full-size data, then Liquibase deploys the same changelog to production. DBLab does not write or deploy migrations, so it does not replace Liquibase. [4][10]

### Which Liquibase edition has policy checks and drift detection?

Liquibase Secure. The pricing page lists Change Governance (policies) on all Secure plans and Change Intelligence (deployments, policy outcomes, drift and history) on Team, Business and Enterprise, and none of the three for Community. [2][9]

### Which PostgreSQL versions does Liquibase support?

PostgreSQL 12 through 18. The docs also have connection guides for PostgreSQL on Amazon RDS, Amazon Aurora PostgreSQL, Azure Database for PostgreSQL and Google Cloud SQL for PostgreSQL. [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 Liquibase

1. [Liquibase blog: Liquibase Community for the future (FSL)](https://www.liquibase.com/blog/liquibase-community-for-the-future-fsl)
2. [Liquibase pricing](https://www.liquibase.com/pricing)
3. [Liquibase repository on GitHub](https://github.com/liquibase/liquibase)
4. [Liquibase Community docs: what is a changelog](https://docs.liquibase.com/community/user-guide-5-0/what-is-a-changelog)
5. [Liquibase Community docs: preconditions](https://docs.liquibase.com/community/user-guide-5-0/what-are-preconditions)
6. [Liquibase Community docs: update-sql](https://docs.liquibase.com/community/reference-guide-5-0-2/init-update-and-rollback-commands/update-sql)
7. [Liquibase docs: rollback commands](https://docs.liquibase.com/secure/reference-guide-5-2/init-update-and-rollback-commands/what-are-rollback-commands)
8. [Liquibase Secure docs: default policy checks](https://docs.liquibase.com/secure/user-guide-5-0/what-default-policy-checks-does-liquibase-offer)
9. [Liquibase Secure docs: drift detection](https://docs.liquibase.com/secure/monitor-6-0-2/what-is-drift-detection)
10. [setup-liquibase GitHub Action](https://github.com/liquibase/setup-liquibase)
11. [Liquibase Secure docs: introduction](https://docs.liquibase.com/secure/intro-to-liquibase-6-0-2)
12. [Liquibase Secure docs: connect Liquibase with PostgreSQL](https://docs.liquibase.com/secure/create-6-0-2/set-up-secure-automation/connect-6-0/connect-liquibase-with-postgresql)
13. [Liquibase Secure docs: severity and exit codes in policy check automation](https://docs.liquibase.com/secure/governance-6-0-2/severity-and-exit-codes-in-policy-check-automation)
14. [Liquibase Secure docs: policy checks library](https://docs.liquibase.com/secure/user-guide-5-2-2/policy-check-library)

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