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.
Where DBLab is ahead of Tonic.ai
Each point pairs what our documentation says with what the Tonic.ai documentation says. Follow the links and check.
One copy of the data, many clones
The data stays on a machine you control
Clones the Postgres you already run
DBLabAny PostgreSQL from version 10 up, wherever it runs: Amazon RDS, Aurora, Cloud SQL, Supabase or your own servers. docsdocs 2
Tonic.aiTonic 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
Open source
DBLabDBLab Engine is open source under Apache 2.0. docs
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.
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.

What you get
A clone in the DBLab UI, ready for connections 1.67 seconds after it was requested (a 2.7 GiB demo database). How it works
DBLab and Tonic.ai, side by side
| Question | 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. docsdocs 2 | 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. 12 |
| Which databases it can copy | YesAny 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. docsdocs 2 | YesPostgreSQL 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. 34135 |
| 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. docs | 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. 27 |
| 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. docsdocs 2 | 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 | YesThe whole database as of the chosen snapshot. Physical mode can follow the source continuously; logical mode is refreshed in full, on a schedule. docsdocs 2 | YesThe 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. 26 |
| Masking sensitive data | YesDocumented options: load an anonymized dump, or apply SQL transformations or PostgreSQL Anonymizer before snapshots are taken. You define the rules. docs | YesThe 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. 1310 |
| CI and migration testing | YesDB 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. docs | YesThe 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. 12111314 |
| 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. docsdocs 2docs 3 | 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. 1116157 |
| Where it runs | YesOn a machine you control, in any cloud or on-premises. DBLab SE installs from the PostgresAI Console or AWS Marketplace. docsdocs 2 | YesStructural 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. 891317 |
| Open source | YesDBLab Engine is open source under Apache 2.0. docs | Not documentedNot 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. docsdocs 2 | 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. 23513 |
| 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. docs | 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 |
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 1310 |
| 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 |
List prices on 18 Nov 2026. The billing units differ, so this is not a total-cost comparison. 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. DBLab pricing
Using DBLab with Tonic.ai
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. 27
- 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
Try a clone before you install anything
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.
Sources
- Tonic.ai product documentation
- Tonic Structural: about data connectors
- Tonic Structural: system requirements for PostgreSQL
- Tonic Structural: PostgreSQL
- Tonic Structural: before you create a PostgreSQL workspace
- Tonic Structural: about subsetting
- Tonic Structural: writing output to a container repository
- Tonic Structural: deployment types
- Tonic Structural: self-hosted deployment
- Tonic Structural: license plans
- Tonic Structural: about the API
- Tonic Structural: using the API to perform tasks
- Tonic.ai pricing
- Tonic.ai guide: integrating Tonic Structural into data refresh and CI/CD pipelines
- Tonic Structural: using the Structural MCP server
- Tonic Structural: about the Structural Agent
- Tonic Structural: getting started with the free trial
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. Found a mistake? Tell us and we will correct the page.
More comparisons
- Delphixopen-source thin clones vs a test data platform
- Redgate Test Data ManagerPostgres clones vs mask and subset
- Snapletfull-size clones vs seed and subset (closed 2024)
- Amazon Aurora cloningclones of any Postgres vs Aurora clusters
- Amazon RDS Blue/Green Deploymentstest clones vs a switchover
- Amazon RDS snapshot restorethin clones vs a new instance each
- Ardentself-hosted thin clones vs a replicated branch service
- Cloud SQL cloningthin clones vs a new Cloud SQL instance
- All comparisons