# DBLab vs Tonic.ai: thin clones vs de-identified database copies

> Tonic Structural de-identifies, subsets and synthesizes a source database into a destination database. DBLab makes thin, writable clones of a PostgreSQL database.

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

## Short answer

Tonic Structural reads a source database, replaces sensitive values with generators, optionally subsets it, and writes the result to a destination database or a container volume. Each run produces a new physical copy of transformed data. DBLab Engine makes thin clones of one PostgreSQL copy in seconds, with masking by rules you define. Pick Tonic if your main need is de-identified or reduced PostgreSQL test data. Pick DBLab if you need many full-size PostgreSQL copies on demand. They also fit together: a Tonic destination database is an ordinary PostgreSQL database that DBLab can copy.

## Where DBLab is ahead of Tonic.ai

1. **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))
   - Tonic.ai: Tonic Structural writes a new copy of the data to the destination database on each data generation run. Annual pricing is set by plan and by the amount of source data connected, with a lower price per GB as more data is connected. [2][13]
2. **The data stays on a machine you control.**
   - DBLab: DBLab runs on a machine you control, in any cloud or on-premises. ([DBLab Engine](https://postgres.ai/docs/database-lab), [Pricing](https://postgres.ai/pricing))
   - Tonic.ai: Structural Professional is deployed on Structural Cloud, hosted by Tonic.ai. Self-hosting comes with Enterprise and is only available to customers who bought Structural or are in a formal evaluation. [13][9]
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))
   - Tonic.ai: Tonic Structural supports PostgreSQL 14 through 18, including Amazon Aurora through the same connector. As of April 1, 2026, it does not support PostgreSQL 10 to 13. [3]
4. **Open source.**
   - DBLab: DBLab Engine is open source under Apache 2.0. ([DBLab Engine](https://postgres.ai/docs/database-lab))
   - Tonic.ai: Tonic Structural is sold on Professional and Enterprise plans with custom pricing, and a self-hosted instance needs a license key. The sources we reviewed do not describe an open-source edition. [13][9]

## 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 | Tonic.ai |
|---|---|---|
| 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. | Tonic Structural de-identifies, subsets and synthesizes structured data. A workspace has a source database and a destination database, where Structural writes the data after applying table modes, generators and subsetting. [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: yes. PostgreSQL 14 to 18, and Amazon Aurora through the same connector; support for 10 to 13 ended on April 1, 2026. Tonic.ai says Structural works with databases on AWS, Azure and GCP. Tonic recommends using a backup rather than production as the source. [3][4][13][5] |
| 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. | Structural connects to source and destination as a SQL client, transforms the data on the Structural server and writes it to the destination database. It can instead write to a container volume in a registry; that option requires Kubernetes. [2][7] |
| 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. | Not documented in the sources we reviewed. Each data generation run reads the source and writes a new copy of the data to the destination. [2] |
| 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: yes. The destination gets the source data with each table's mode and generators applied. Subsetting is optional: you decide at generation time whether to use it, for example 5% of transactions or all rows tied to customers in California. [2][6] |
| 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. | Masking: yes. The core function. Features include a generator library, privacy scan, privacy reports, cross-table consistency, custom sensitivity rules and schema change alerts; the Privacy Report and custom permission sets need an Enterprise license. [13][10] |
| 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: yes. The REST API can start and schedule data generation jobs; webhooks and post-job actions are listed features. A Tonic.ai guide shows API-triggered refreshes from cron or CI/CD tools such as Jenkins, GitLab CI or GitHub Actions. The basic API comes with Professional; configuring generators or subsetting by API needs Enterprise. The sources we reviewed do not describe migration testing. [12][11][13][14] |
| 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 Structural web application, the Structural Agent, an MCP server for AI clients, and a versioned REST API (a new version about once per quarter). Output in a container repository comes with a Docker Compose file that holds the connection settings. [11][16][15][7] |
| 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: yes. Structural Cloud, hosted by Tonic.ai, or self-hosted with Docker Compose or Kubernetes Helm. The pricing page lists self-hosting on Enterprise; the docs say self-hosting is for customers who bought Structural or are in a formal evaluation. Structural Cloud has a 14-day free trial. [8][9][13][17] |
| Open source | Yes. DBLab Engine is open source under Apache 2.0. | Not documented in the sources we reviewed. Self-hosted instances need a license key. [9] |
| 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. | Source and destination must use the same connector, and the destination version cannot be older than the source. They must have the same extensions, and the destination user needs superuser. Professional allows 10 users, two connector types and up to 10 TB of source data. [2][3][5][13] |
| 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. | Annual pricing set by plan and by the amount of source data connected, measured as total size on disk excluding logs and indexes, with volume discounts per GB. [13] |

## When Tonic.ai is the better choice

- De-identification is the core of the product: a privacy scan, a generator library, cross-table consistency, privacy reports and schema change alerts.
- Subsetting that preserves referential integrity: pick target tables by percentage or WHERE clause, and Structural pulls the related rows through foreign keys or virtual foreign keys.
- Structural Cloud is hosted by Tonic.ai, which handles monitoring and updates, and a 14-day free trial runs on it; Enterprise can also be self-hosted with Docker Compose or Helm.
- The Structural Agent summarizes the sensitivity scan and suggests generators, and an MCP server lets AI clients such as Claude Code perform the same actions.
- For PostgreSQL, output can be written to a container repository as a data volume, with a Docker Compose file to start a database on it.

## 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 |
| Tonic.ai | Structural Professional | No public price | Custom pricing; up to 10 TB source data, up to 10 users, 2 data source types, Tonic Cloud deployment [13][10] |
| Tonic.ai | Structural Enterprise | No public price | Custom pricing; unlimited source data, users and data source types, Tonic Cloud or self-hosted, RBAC, SSO/SAML [13] |

DBLab prices: https://postgres.ai/pricing. The same pricing page lists separate plans for Tonic Fabricate (AI-powered synthetic data generation, with database masking on its Enterprise plan) and Tonic Textual (unstructured data), which this page does not cover.

## Using both

Tonic Structural writes de-identified data to a destination PostgreSQL database, and DBLab copies any PostgreSQL it can reach by dump and restore, or loads an anonymized dump. A Structural destination database can therefore be the source for DBLab clones.

## Questions

### Does Tonic Structural make database clones?

Each run makes a new, transformed copy. Structural reads the source as a SQL client, applies generators and optional subsetting on the Structural server, and writes the result to a destination database or a container volume. DBLab makes thin clones that share one physical copy. [2][7]

### Which PostgreSQL versions does Tonic Structural support?

PostgreSQL 14 through 18, plus Amazon Aurora through the PostgreSQL connector. Support for PostgreSQL 10 to 13 ended on April 1, 2026. [3]

### What does Tonic Structural cost?

Tonic.ai lists custom pricing for Professional and Enterprise; annual pricing depends on the plan and on the size of the connected source data, excluding logs and indexes. [13]

### Can I use Tonic.ai and DBLab together?

Yes. Structural writes de-identified data to a destination PostgreSQL database. DBLab can use that database as its source, or load an anonymized dump of it, and then give each developer or CI job a thin clone. [2][4]

## Sources for DBLab

- [DBLab Engine](https://postgres.ai/docs/database-lab)
- [Pricing](https://postgres.ai/pricing)
- [DBLab data sources](https://postgres.ai/docs/dblab-howtos/administration/data)
- [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 Tonic.ai

1. [Tonic.ai product documentation](https://docs.tonic.ai/)
2. [Tonic Structural: about data connectors](https://docs.tonic.ai/app/setting-up-your-database/database-connectors)
3. [Tonic Structural: system requirements for PostgreSQL](https://docs.tonic.ai/app/setting-up-your-database/postgres/postgresql-system-requirements)
4. [Tonic Structural: PostgreSQL](https://docs.tonic.ai/app/setting-up-your-database/postgres)
5. [Tonic Structural: before you create a PostgreSQL workspace](https://docs.tonic.ai/app/setting-up-your-database/postgres/postgresql-before-create-workspace)
6. [Tonic Structural: about subsetting](https://docs.tonic.ai/app/generation/subsetting/subsetting-about)
7. [Tonic Structural: writing output to a container repository](https://docs.tonic.ai/app/workspace/workspace-configuration-settings/workspace-config-write-to-container-artifacts)
8. [Tonic Structural: deployment types](https://docs.tonic.ai/app/readme-1/tonic-deployment-types)
9. [Tonic Structural: self-hosted deployment](https://docs.tonic.ai/app/admin/on-premise-deployment)
10. [Tonic Structural: license plans](https://docs.tonic.ai/app/readme-1/tonic-license-plans)
11. [Tonic Structural: about the API](https://docs.tonic.ai/app/api/api-documentation)
12. [Tonic Structural: using the API to perform tasks](https://docs.tonic.ai/app/api/quick-start-guide)
13. [Tonic.ai pricing](https://www.tonic.ai/pricing)
14. [Tonic.ai guide: integrating Tonic Structural into data refresh and CI/CD pipelines](https://www.tonic.ai/guides/integrating-tonic-into-your-data-refresh-and-ci-cd-pipelines)
15. [Tonic Structural: using the Structural MCP server](https://docs.tonic.ai/app/api/structural-mcp-server)
16. [Tonic Structural: about the Structural Agent](https://docs.tonic.ai/app/structural-ai-and-agent/agent-about)
17. [Tonic Structural: getting started with the free trial](https://docs.tonic.ai/app/quick-start-guide)

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