Skip to main content

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.

See how DBLab worksOpen the demoPricing

Checked on against 17 pages of Tonic.ai documentation. PostgreSQL only. Markdown

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.

  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. docsdocs 2

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

  2. The data stays on a machine you control

    DBLab

    DBLab runs on a machine you control, in any cloud or on-premises. docsdocs 2

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

  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. docsdocs 2

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

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

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.
The DBLab UI showing a clone that is ready to accept Postgres connections, created in 1.67 seconds, with its psql connection string.

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

See how DBLab worksOpen the demoPricing

DBLab and Tonic.ai, side by side​

QuestionDBLabTonic.ai
What it isOpen-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 2Tonic 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 copyYesAny 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 2YesPostgreSQL 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 madeCopy-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. docsStructural 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 copyA 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 2Not 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 copyYesThe whole database as of the chosen snapshot. Physical mode can follow the source continuously; logical mode is refreshed in full, on a schedule. docsdocs 2YesThe 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 dataYesDocumented options: load an anonymized dump, or apply SQL transformations or PostgreSQL Anonymizer before snapshots are taken. You define the rules. docsYesThe 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 testingYesDB 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. docsYesThe 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 accessREST 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 3The 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 runsYesOn a machine you control, in any cloud or on-premises. DBLab SE installs from the PostgresAI Console or AWS Marketplace. docsdocs 2YesStructural 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 sourceYesDBLab Engine is open source under Apache 2.0. docsNot documentedNot documented in the sources we reviewed. Self-hosted instances need a license key. 9
Documented limitsDBLab 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 2Source 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 forOne 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. docsAnnual 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​

ProductPlanList priceNotes
DBLabDBLab EngineFreeOpen source, Apache 2.0; you run it
DBLabDBLab SEFrom $62/monthBilled hourly by machine size, plus your own cloud costs; 2,000 GiB limit; single user
DBLabDBLab EECustomAnnual contract, from $0.2662 per 100 GiB per hour; unlimited database size, SSO
Tonic.aiStructural ProfessionalNo public priceCustom pricing; up to 10 TB source data, up to 10 users, 2 data source types, Tonic Cloud deployment 1310
Tonic.aiStructural EnterpriseNo public priceCustom 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
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. 24

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.

See how DBLab worksOpen the demoPricing

Sources​

  1. Tonic.ai product documentation
  2. Tonic Structural: about data connectors
  3. Tonic Structural: system requirements for PostgreSQL
  4. Tonic Structural: PostgreSQL
  5. Tonic Structural: before you create a PostgreSQL workspace
  6. Tonic Structural: about subsetting
  7. Tonic Structural: writing output to a container repository
  8. Tonic Structural: deployment types
  9. Tonic Structural: self-hosted deployment
  10. Tonic Structural: license plans
  11. Tonic Structural: about the API
  12. Tonic Structural: using the API to perform tasks
  13. Tonic.ai pricing
  14. Tonic.ai guide: integrating Tonic Structural into data refresh and CI/CD pipelines
  15. Tonic Structural: using the Structural MCP server
  16. Tonic Structural: about the Structural Agent
  17. 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.