DBLab vs Xata
thin clones on one machine vs a branching platform
Xata clones or streams an existing Postgres into its platform and branches it with copy-on-write storage. DBLab makes thin clones of any Postgres on one machine you run.
See how DBLab worksOpen the demoPricing
Status of Xata: ClickHouse announced on November 9, 2026 that it is acquiring Xata. Xata is still onboarding customers; ClickHouse plans to integrate it into ClickHouse Managed Postgres in the coming months. 14
Where DBLab is ahead of Xata
Each point pairs what our documentation says with what the Xata documentation says. Follow the links and check.
The data stays on a machine you control
One copy of the data, many clones
Plans for an AI agent, without the rows
XataXata's MCP server gives assistants run_sql on a branch, read-only by default; writes need write=true and confirm=true. The sources we reviewed do not describe a mode that returns query plans without the rows. 10
Short answer
Xata is a Postgres platform with copy-on-write branches, scale to zero and anonymization, offered as Xata Cloud, in your own cloud (BYOC), or as open-source software on Kubernetes. It copies an existing Postgres into Xata with xata clone, once, on a schedule or as a continuous stream, and masks data on the way. DBLab Engine is open-source software that makes full-size thin clones of any PostgreSQL on a single machine you run. Both serve dev, CI and agents from a copy of production. Xata runs each branch as its own Postgres instance on Kubernetes; DBLab keeps all clones on one machine. ClickHouse announced in November 2026 that it is acquiring Xata.
When Xata is the better choice
- Each branch is its own Postgres instance with its own compute that scales to zero when idle, about 1 second to wake on Xata Cloud and BYOC, so branches do not share one machine.
- Anonymization is part of the copy: xata clone applies column transformers (deterministic, masking, templating) while it copies or streams production into Xata.
- The copy can follow production: xata clone stream takes a snapshot, then keeps it in sync with logical replication.
- A GitHub App creates a child branch for each pull request and deletes it when the pull request closes; GitHub Actions and Vercel preview flows are documented too.
- Three ways to run it: Xata Cloud from $0.012 per hour plus $0.28 per GB-month, BYOC on your own Kubernetes, or the Apache 2.0 open-source platform for free.

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 Xata, side by side
| Question | DBLab | Xata |
|---|---|---|
| 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 | A Postgres platform that "runs vanilla PostgreSQL with high-performance storage, isolation, and instant branching built in", with scale to zero and anonymization. Used for dev environments, preview deployments, CI and AI agents. 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 | Yesxata clone copies any Postgres reachable by a postgres:// connection string into a Xata branch, then you branch from that copy. Xata names RDS, Aurora, Cloud SQL and self-hosted sources. xata clone stream keeps the copy in sync by logical replication. 4513 |
| 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 | Copy-on-write block storage: at branch time "no data blocks are copied"; blocks are copied only when written. Xata Cloud and BYOC use Xatastor storage; the open-source edition uses OpenEBS/Mayastor. Each branch runs as its own Postgres instance on Kubernetes (CloudNativePG). 237 |
| 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 | The branching docs say creation "completes in seconds even for terabyte-scale databases"; Xata's documentation summary says a child branch takes about three seconds. Scaled-to-zero branches wake in about 1 second on Xata Cloud and about 10 seconds in the open-source edition. 2133 |
| 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 | YesA child branch "contains the exact schema and data of its parent at the moment of creation". The first copy of an external database comes from xata clone, which can copy selected tables and mask columns on the way. 24 |
| 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 | Yesxata clone, built on pgstream, anonymizes data while it is copied or streamed, with per-column transformers that can be deterministic, mask values or use templates; custom ones can be written in Go. BYOC lists "Advanced (HIPAA)" anonymization. 653 |
| 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 | YesA GitHub App creates a child branch from a configured root branch when a pull request opens and deletes it when it closes; it does not refresh the branch on each push. GitHub Actions workflows cover custom pull request flows, scheduled clones and bulk cleanup. 817 |
| 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 | Console, REST API, the open-source xata CLI (xata branch create --parent-branch, xata clone), and an MCP server whose run_sql tool is read-only by default; writes need write=true and confirm=true. 941110 |
| 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 | YesXata Cloud on AWS and GCP; BYOC, with the data plane on your Kubernetes in AWS, Azure, GCP, Hetzner or on-premises and the control plane in Xata's AWS account; or the open-source platform self-hosted on your own Kubernetes with Helm charts. 1137 |
| Open source | YesDBLab Engine is open source under Apache 2.0. docs | YesThe xataio/xata platform (branch operator, SQL gateway, scale-to-zero plugin, CLI) is on GitHub under Apache 2.0. pgstream (replication) and pgroll (schema migrations) are separate Apache 2.0 projects. Xata Cloud and BYOC are paid offerings. 7121516 |
| 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 | "The number of branches per project and the branch creation rate depend on your plan"; the docs give no numbers. Branch storage can only grow, up to 1024 Gi (1 TB). A minimal BYOC setup needs three Kubernetes nodes. 2911 |
| 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 | Xata Cloud bills each running instance by the hour, from $0.012 (micro) to $1.536 (8xlarge), plus storage at $0.28 per GB-month, billed by the minute. Idle branches scale to zero. There are no per-branch, per-developer or per-database fees. 3 |
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 |
| Xata | Open Source | Free | Apache 2.0; self-host on your own Kubernetes; community support 37 |
| Xata | Xata Cloud | From $0.012/hour plus $0.28/GB-month storage | Instances from micro (1 GB RAM, $9/month) to 8xlarge (128 GB RAM, $1121/month); AWS and GCP; SOC 2 and GDPR; free trial 3 |
| Xata | BYOC | No public price | Percentage of Xata managed cloud spend, estimate on request, with a minimum annual commitment; AWS, Azure and GCP; HIPAA anonymization, BAA 318 |
List prices on 18 Nov 2026. The billing units differ, so this is not a total-cost comparison. Xata says there are no per-branch, per-developer or per-database fees; you pay for instances while they run and for storage. DBLab pricing
Questions
- Can Xata branch a database that stays on Amazon RDS?
- Yes, through a copy. xata clone snapshots the RDS database into a Xata branch, optionally on a schedule, and xata clone stream keeps it current with logical replication. Branches are then made from that copy inside Xata; production stays on RDS. 4513
- Is Xata open source?
- Yes. The Xata platform (xataio/xata) is on GitHub under Apache 2.0 and runs on Kubernetes, built on CloudNativePG. Xata Cloud and BYOC are paid. pgstream and pgroll are separate Apache 2.0 projects from Xata. 71516
- What does Xata cost?
- The open-source edition is free. Xata Cloud starts at $0.012 per hour for a micro instance plus $0.28 per GB-month of storage, with no per-branch fees. BYOC is priced as a percentage of managed cloud spend, quoted on request. 3
- What happened to Xata?
- On November 9, 2026, ClickHouse announced it is acquiring Xata. The announcement says ClickHouse is still onboarding customers to Xata and plans to bring Xata's branching into ClickHouse Managed Postgres in the coming months. 14
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
- Xata home page
- Xata docs: Branching
- Xata pricing
- Xata docs: Create a production clone
- Xata docs: Create streaming replica
- Xata docs: Data anonymization
- xataio/xata repository
- Xata docs: GitHub App
- Xata docs: Branches
- Xata docs: MCP server
- Xata docs: Deployment models
- Xata Core
- Xata documentation summary for LLMs
- ClickHouse blog: Managed Postgres GA and Xata acquisition
- pgroll repository
- pgstream repository
- Xata documentation index
- Xata pricing specification
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
- Databricks Lakebaseclones of any Postgres vs Lakebase branches
- Neonclones of any Postgres vs branches on Neon
- PlanetScaleclones in seconds vs branches restored from backup
- Supabase Branchingfull-size copies vs preview branches
- Tiger Dataclones of any Postgres vs Tiger Cloud forks
- Velaclones of any Postgres vs branches on Vela
- Amazon Aurora cloningclones of any Postgres vs Aurora clusters
- Amazon RDS Blue/Green Deploymentstest clones vs a switchover
- All comparisons