Aurora Database Branching vs Neon vs PlanetScale: Branches for AI Agents

Aurora Database Branching vs Neon vs PlanetScale: Branches for AI Agents

Aurora Database Branching vs Neon vs PlanetScale: Branches for AI Agents

An AI coding agent that writes a migration needs a database to run it against, and the honest answer for most teams has been “a stale staging copy” or “nothing”. On December 2, 2026, AWS announced Aurora database branching in preview: a copy-on-write branch of an Aurora PostgreSQL cluster, with its own serverless compute and endpoint, that an agent can create, break and let expire. That puts AWS into a space Neon has owned for years and PlanetScale approaches from a different direction. The three products all say “branch”, but they mean different things. One shares storage pages, one shares a write-ahead log history, and one restores a backup into a new cluster. Those differences decide what an agent can safely touch, what a fleet of agents costs, and what happens to personal data. This comparison uses each vendor’s documentation as checked on 3 December 2026.

What this covers: a verified feature matrix, how each branch is built underneath, cost math for an agent fleet, the isolation gaps a branch does not close, and a decision path for picking one.

Context and Background

Database branching is an old idea with a new customer. Developers have wanted git-style forks of a database for a decade. They wanted them for preview environments, migration rehearsal and bug reproduction. Our earlier architecture decision record on database branching for ephemeral environments covers that human workflow: copy-on-write storage, dump-and-seed, ZFS snapshots and the CI wiring around them. This post does not repeat that ground. It asks a narrower question: which branching model holds up when the thing creating branches is an autonomous agent, not a person opening a pull request?

The agent customer is real, not hypothetical. When Databricks announced its agreement to acquire Neon on May 14, 2025, its blog said 30% of Neon databases were created by AI agents around Neon’s general availability, a figure that later rose to over 80% (Databricks). That is Neon’s own platform data as relayed by Databricks, not an industry survey. Still, it shows the pattern. Agents create databases far faster than people do, and they throw them away just as fast.

AWS framed its launch the same way. In the re:Invent 2026 Data and AI keynote, Swami Sivasubramanian said each agent gets its own isolated copy of production. According to ITPro’s live blog, he said, “Agents can work in parallel on current production data and schema without breaking each other’s steps.” The AWS News Blog describes branching as giving “developers and AI coding agents an isolated, secure copy of a production database.” It ships alongside three other Aurora previews: data groups, cluster groups and continuous replication to Apache Iceberg in S3 Tables.

The incumbents arrived by different paths. Neon rebuilt Postgres storage around a write-ahead log service, so branching was a near-free consequence of its design. PlanetScale started on Vitess for MySQL. Its branches were mainly schema sandboxes feeding “deploy requests”, with data seeding added later from backups. It now also sells PlanetScale Postgres and a sharded Postgres product called Neki. Supabase branches are built from migrations and seed files. Xata built copy-on-write at the block-storage layer, and ClickHouse agreed to acquire it in late 2026. Aurora had copy-on-write cloning since well before 2020. What is new is a branch-shaped product on top: a TTL, scale-to-zero compute, inherited masking and an MCP-reachable API.

Aurora Database Branching vs Neon vs PlanetScale: The Comparison Matrix

Direct answer: Aurora database branching and Neon both create copy-on-write branches that hold production data, store only changed pages and scale compute to zero. Aurora’s is a preview limited to Aurora PostgreSQL 17+ in three Regions with a mandatory TTL. PlanetScale branches start empty and copy data only by restoring a backup, so they behave like full clones.

The table below is the core of the comparison. Every cell comes from vendor documentation read on 3 December 2026. “Not documented” means we looked and found nothing, not that the feature is missing.

Dimension Aurora database branching Neon branching PlanetScale Postgres PlanetScale Vitess (MySQL)
Status Preview, announced Dec 2, 2026 Generally available Generally available Generally available
Engine Aurora PostgreSQL 17 and higher Postgres (14 to 19 listed in docs) Postgres MySQL via Vitess
Regions US East (Ohio), Europe (Frankfurt), Asia Pacific (Mumbai) Neon Regions on AWS and Azure PlanetScale Regions PlanetScale Regions
Data in a new branch Yes, copy-on-write of the parent Yes, copy-on-write; schema-only option No by default; yes if restored from a backup Schema only by default; data via Data Branching from latest backup
Mechanism Shares parent’s storage pages, stores changed pages Points at a position in WAL history, diverges with copy-on-write Backup restore into a new cluster Backup restore into a new branch
Branch from the past Not documented Yes, within the history window Choose a backup Latest backup only
Compute Aurora Serverless, 0 ACU min, default max 16, up to 64 ACU Autoscaling CU, scale to zero after 5 min on Free and Launch PS-DEV single node from $5/month, or parent’s size on restore Development or production sizes
Lifetime control Required TTL, 1 hour to 90 days Optional expires_at, up to 30 days Manual delete Manual delete
Quotas 50 branches per cluster, 2,000 per account, one child level 10 included (Free and Launch), 25 (Scale); 5,000 max per project 100 dev branches default, configurable to 5,000 Plan-dependent
Branch charge None; pay serverless compute and changed data $1.50 per extra branch-month on paid plans Branch compute and storage Branch compute and storage
PII handling Inherits parent’s dynamic data masking Anonymized branches (static masking, beta) Not documented Not documented
Merge path None; apply migrations with your own tool None for data; reset from parent None automated between Postgres branches Deploy requests merge schema only
Agent interface Console, CLI, SDK, AWS MCP Server API, CLI, MCP server API, CLI API, CLI

Three things in this matrix matter more than the rest. The first is whether a branch contains data at all. The second is whether a branch costs anything while idle. The third is what happens to sensitive columns. The sections below explain each mechanism, because the mechanism predicts behaviour the tables never mention.

Aurora database branching architecture showing an agent creating a copy-on-write branch with its own serverless compute over the shared Aurora storage volume
Figure 1: How an Aurora branch is assembled from the shared cluster volume, a serverless compute node and inherited security controls.

Figure 1 traces the Aurora path. An agent calls the RDS API, directly or through the AWS MCP Server. IAM authorizes rds:CreateBranch. Aurora then attaches a new serverless compute node to a copy-on-write view of the parent’s storage volume. The branch gets its own read/write endpoint inside the parent’s VPC and security groups. Every page it does not modify is still the parent’s page. The parent’s encryption keys, database users and roles, and pg_columnmask masking policies come along automatically.

Aurora: page-level copy-on-write on a shared volume

Aurora’s storage layer already did the hard part. Aurora cloning, documented for years, creates a new volume that points at the same pages as the source. “When the source or the clone changes a page, Aurora writes a new copy of that page and leaves the original in place,” the clone documentation explains. Billing follows ownership. In AWS’s own example, a source with 1,000 used pages and a clone that modifies 100 bill as 1,000 pages to the source and 100 to the clone.

The branching docs describe the same idea at branch scope. A branch “initially shares the parent cluster’s data pages and stores only the data that changes on the branch.” What branching adds is product shape, not new storage physics. Each branch must run on Aurora Serverless. It scales to zero when idle. It has a required TTL of 1 to 2,160 hours. It is a single compute instance with no Multi-AZ failover, no automated backups and no SLA. During the preview, you cannot change a branch’s settings after creation. You also cannot pick its engine version or parameters.

Creation speed is not in the docs. SiliconANGLE reports branches appear “in about a minute”, which is plausible for provisioning serverless compute. Treat it as reported until you time it yourself.

Neon: a branch is a position in WAL history

Neon’s architecture separates stateless Postgres compute from storage. Commits stream write-ahead log (WAL) records to a quorum of safekeepers that agree via Paxos. A pageserver materializes page versions from that WAL on demand and returns “that version” of a page for a requested log sequence number (LSN). Object storage holds the durable history behind it. If WAL is new to you, our explainer on write-ahead logging, fsync and checkpoints covers why the log can be the source of truth.

In this design, a branch is cheap by construction. Neon’s architecture page says a new branch “points to an existing point in history and begins diverging from there using copy-on-write semantics.” That is why Neon can branch from a past moment inside its history window: up to 7 days on Launch and 30 on Scale. The Aurora database branching docs do not document a point-in-time option. Neon also offers schema-only branches. These are new root branches with structure but no rows, which is useful when production data must never reach a sandbox at all.

PlanetScale: branches as separate clusters

PlanetScale’s model is the most different. A PlanetScale Postgres branch created from the Branches page “does not include schema or data”. It is a new single-node PS-DEV database. To get data, you restore a backup into a new branch, and “the cluster size, and therefore cost, is inherited from your main parent branch.” There is no shared storage. Each branch is a real cluster with its own disks. Neki, PlanetScale’s sharded Postgres, works the same way: “It does not copy the parent branch’s schema or data.”

On Vitess, the branch exists to rehearse schema changes. You change a development branch and open a deploy request, and PlanetScale applies the schema change to production online. Data Branching seeds a branch from the latest backup. However, there is “no data syncing” in either direction, and seeding from production creates a production-sized branch with replicas. PlanetScale’s docs show a PS-80 example where storage alone across three replicas adds $135. That model is excellent for schema governance, but it is not a cheap per-agent sandbox.

Deeper Analysis: What an Agent Fleet Actually Costs and Breaks

Comparisons usually stop at “copy-on-write is cheap”. For agents, the interesting questions are about scale and failure. What does a fleet of hundreds of short-lived branches cost? Which quotas break first? Where does isolation end? This section works through all three.

Neon branching architecture with stateless compute, safekeepers, pageserver and object storage where each branch is a pointer into WAL history
Figure 2: Neon’s storage design makes a branch a pointer to an LSN in shared WAL history, which is why branches from past states are cheap.

Figure 2 shows why Neon’s costs track compute, not branch count. Each branch’s compute sends WAL to the same safekeeper quorum. The pageserver keeps version history for all branches together. A branch costs storage only for the WAL it generates after its branch point. Neon bills a child branch on “the lower of accumulated changes since creation or logical data size”, so a fresh branch starts at zero storage cost.

Aurora database branching in practice: what the orchestrator calls

The control surface is small, which suits automation. AWS’s getting-started guide shows three CLI commands: create-branch, describe-branches and delete-branch. The example below follows the documented flags. We changed the TTL to four hours and the capacity cap to 4 ACU to suit agent work, and added the owner tag that AWS’s sample IAM policy expects ($CALLER_USERID stands for the caller’s aws:userid). We have not run it against a live preview account, so treat it as a template.

# Create a short-lived branch for one agent task (flags as documented by AWS)
aws rds create-branch \
    --branch-name agent-task-4812 \
    --source-db-cluster-identifier my-prod-cluster \
    --ttl-seconds 14400 \
    --scaling-configuration MaxCapacity=4,SecondsUntilAutoPause=300 \
    --tags Key=branch-owner,Value="$CALLER_USERID" Key=task,Value=4812

# Find it again (endpoint and status come back in the output)
aws rds describe-branches \
    --db-cluster-identifier my-prod-cluster \
    --branch-name agent-task-4812

# Tear it down as soon as the task finishes; TTL is only the backstop
aws rds delete-branch --branch-arn <branch-arn>

Two details in that snippet carry most of the safety. The MaxCapacity cap bounds what one runaway agent can spend per hour. In this example, 4 ACU × $0.12 is at most $0.48 an hour at list price. The SecondsUntilAutoPause value decides how quickly an idle branch stops billing compute. The matching IAM actions are rds:CreateBranch, rds:DescribeBranches and rds:DeleteBranch. AWS’s sample policy requires a branch-owner tag equal to ${aws:userid}, and it denies claiming or removing another identity’s tag. It also grants rds-db:connect only for branch database users whose names begin with br-. That is the right default for multi-agent setups, because one agent should never be able to connect to, or delete, another’s sandbox. Give each agent its own role session so aws:userid actually differs between agents.

The orchestration pattern AWS documents is the familiar one from CI. Create a branch per pull request or task, run the migration and tests, discard the branch on failure, and apply the migration to production with Flyway or Liquibase. Third-party walkthroughs also describe triggering branch creation from Amazon EventBridge; we did not find that on the IAM or getting-started pages, so confirm it before you rely on it. For agents, the AWS MCP Server exposes the same operations as tools. That convenience cuts both ways: an agent holding branch-creation rights can also create branches in a loop, which is why the next two sections matter.

Worked cost example: 200 agent tasks a day

Here is an illustrative workload. The prices are real list prices, but the workload is invented. An engineering org runs 200 agent tasks per day. Each task creates a branch, runs migrations and tests for about 20 minutes of active compute, writes about 0.5 GB of changed data, and the branch lives about two hours before expiry or deletion.

Active compute is 200 × 20 / 60 = 66.7 task-hours per day. The sizing must be comparable. An Aurora capacity unit (ACU) is roughly 2 GiB of memory with matching CPU. A Neon compute unit (CU) is about 4 GB of RAM, per Neon’s limits table (“2 CU (8 GB RAM)”). So 2 ACU is roughly comparable to 1 Neon CU, though CPU allocation and performance will differ.

Line item (illustrative) Aurora branching, Aurora Standard Neon Launch Neon Scale
Compute rate $0.12 per ACU-hour (us-east-1 list) $0.106 per CU-hour $0.222 per CU-hour
Daily compute 66.7 h × 2 ACU × $0.12 = $16.00 66.7 h × 1 CU × $0.106 = $7.07 66.7 h × 1 CU × $0.222 = $14.80
30-day compute $480 $212 $444
Changed-data storage per day 200 GB-hours ÷ 730 × $0.10 ≈ $0.03 200 GB-hours ÷ 730 × $0.35 ≈ $0.10 ≈ $0.10
Branch-count charge None 15 extra branches all day ≈ $0.74 per day Depends on peak concurrency

Several caveats matter more than the totals. First, AWS’s pricing page lists N. Virginia, and branching is not yet available there. Ohio rates for Aurora Standard have historically matched N. Virginia, but check the Ohio page before you budget. Frankfurt and Mumbai cost more. Second, Aurora Standard also bills I/O at $0.20 per million requests. A migration-heavy test suite can make I/O a real line item, and we have not modelled it. Third, Neon’s branch-month charge applies only above the plan’s included count. Our “15 extra” figure assumes peak concurrency of 25 on Launch, held all day as a worst case.

The structural point survives the caveats. In both copy-on-write systems, storage is a rounding error and compute time is the bill. A full-copy approach would change that. Two hundred full copies of a 500 GB database, each living two hours, is 200,000 GB-hours a day. At Aurora’s $0.10 per GB-month, that is about $27 a day in storage alone, before the hours spent copying. Copy-on-write turns that into cents.

The runaway branch problem

Agents fail differently from people. A person forgets one branch. An agent stuck in a retry loop creates 50. The risk is not storage but compute that never idles. An agent that leaves a long-running query or open transaction keeps a branch awake. Fifty branches pinned at 2 ACU for 24 hours cost 50 × 2 × 24 × $0.12 = $288 on Aurora list prices. That is more than half a month of the planned workload in one day.

The products defend against this in different ways. Aurora caps branches at 50 per cluster and 2,000 per account. It also forces a TTL, so an orphan eventually dies, though that can take up to 90 days. Neon caps a project at 5,000 branches and makes expiry optional with a 30-day maximum. PlanetScale Postgres defaults to 100 development branches per database. None of these limits is a budget control. A per-cluster cap of 50 is generous for humans and tight for a big agent fleet. You may hit the quota before you hit the bill, which is the better order of failure.

What a branch isolates, and what it does not

A branch isolates database state. It does not isolate the world. That distinction gets lost in launch messaging, and it is the main source of agent incidents.

Risk What the branch guarantees What it does not
Data writes Writes land on the branch’s pages only Nothing stops the agent writing to production if it holds a production endpoint
Credentials Aurora branches inherit the parent’s users and roles Production passwords therefore also open the branch, and the reverse holds too
Identifiers Sequences are copied at branch time Branch and parent can generate the same IDs, so IDs leak into shared queues and caches
Side effects Triggers and functions run inside the branch Outbound webhooks, pg_net calls and app jobs reading the branch still hit real services
Personal data Masking or anonymization if configured Unmasked columns, superuser-level roles and new tables without policies
Load Branch compute is separate from production compute Aurora warns branch compute can differ from production, so branch timings are not benchmarks

The identifier row is documented by Neon: “A branch and its parent can therefore generate the same IDs.” The same logic applies to any copy-on-write fork, because the sequence state is part of the copied pages. If an agent’s test run publishes events with branch-generated IDs to a shared Kafka topic or cache, those IDs can collide with real ones.

The credentials row is an inference from AWS’s documentation, so verify it in your own account. With Aurora database branching, branches inherit “the parent’s database users and roles”. If your production app user has a static password, that password will authenticate to every branch. That is convenient for tests. It is dangerous if an agent’s prompt or logs ever expose it. AWS’s sample IAM policy hints at a cleaner convention: it allows rds-db:connect only for database users whose names begin with br-, so agents use dedicated branch users rather than the application’s login. The fix AWS points to is IAM database authentication, with branch access governed “through IAM policies”. Our guide to AI agent identity and delegated authorization covers how to give each agent a short-lived, narrowly scoped identity instead of a shared secret.

Decision flow for database branching for AI agents choosing between Aurora, Neon, PlanetScale and full clones
Figure 3: A decision path for choosing a branching product for agent sandboxes, driven by engine, need for production data and where the primary database lives.

Figure 3 condenses the selection logic. Start with the engine and where production already runs. A MySQL estate rules out Aurora database branching and Neon today. An Aurora PostgreSQL estate on version 17 in a supported Region makes Aurora database branching the obvious trial, because moving production elsewhere just to get branches is rarely worth it. Neon wins when you need point-in-time branches, branches outside AWS or a GA service. PlanetScale wins when governed schema change matters more than per-agent data copies.

Masking: dynamic on Aurora, static on Neon

PII handling is where the two copy-on-write products differ most. Aurora’s approach is dynamic data masking with the pg_columnmask extension. It is available on Aurora PostgreSQL 16.10+ and 17.6+ at no extra cost, and AWS announced it in November 2025. Policies decide what a role sees at query time. The AWS docs are explicit: “The underlying data remains unchanged in storage.” A branch therefore contains real personal data, masked only on read for roles that the policies cover.

Neon’s anonymized branches take the opposite approach. They are in beta and use the PostgreSQL Anonymizer extension for static masking. Neon creates the branch with the parent’s data and then rewrites it, permanently changing the copy while “the parent branch data remains unchanged.” The branch is unavailable while anonymization runs. Foreign key columns cannot be masked directly. And it is “not supported on Postgres 19 yet.”

The trade-off is clean. Dynamic masking is instant and needs no extra storage, but real values sit one privilege mistake away. Static masking costs time and storage, because every masked page diverges from the parent. In exchange, the real values are gone. For agents whose prompts, tool outputs and traces flow to a model provider and log stores, static removal is the safer default. Dynamic masking is acceptable when roles are tightly controlled and audited.

Trade-offs, Gotchas, and What Goes Wrong

Copy-on-write branches are cheap to create, but not free to run. The sections above cover cost and isolation. These are the operational failures that tend to show up in the first month of real agent use.

Preview means preview. Aurora database branching has no SLA, no Multi-AZ and no backups on branches, and settings are frozen after creation. That is fine for disposable agent work. It is not fine for a “temporary” staging branch that a team quietly comes to depend on. Use an Aurora clone or a Blue/Green deployment for anything long-lived. AWS’s own comparison page draws that line.

No merge for data, anywhere. None of these products merges branch data back into production. Aurora’s documented pattern is to test a migration on a branch, discard the branch, then apply the migration to production with Flyway or Liquibase. PlanetScale Postgres says “There’s currently no automated way to merge schema changes” between branches. Only Vitess deploy requests merge anything, and they merge schema, not rows. An agent that “fixes data” on a branch has produced a script, not a fix. The script must be reviewed and replayed.

Branch drift. A branch is a snapshot that ages. Neon offers reset from parent to refresh it. Aurora database branching documents no refresh, so long-running agent sessions test against data that grows staler by the hour. Keep TTLs short and recreate branches rather than reusing them.

Benchmarks lie on branches. Aurora warns that branch compute “can differ from production.” Cold caches on a scaled-to-zero branch make the first queries slow. Agents that tune queries on timings from a branch will draw the wrong conclusions. Use EXPLAIN plans and row counts, not wall-clock times.

Quota cliffs. At 50 branches per cluster, a busy agent platform can exhaust Aurora’s default quota. The quota can be raised, according to SiliconANGLE’s report. Neon’s included branch counts are small: 10 on Launch and 25 on Scale. Above that, every concurrent branch is billable. Design your orchestrator to queue branch requests rather than fail.

Parent coupling. On copy-on-write systems, the parent’s lifecycle affects branches. Aurora’s clone docs show that deleting a source moves page ownership to the clones and raises their billed storage. Aurora also says a branch’s TTL cannot exceed its source’s remaining TTL. Before you restructure the production cluster, read the parent-deletion rules.

Sequence diagram of an agent sandbox database lifecycle on Aurora branching from IAM authorization through branch creation, testing, migration handoff and TTL expiry
Figure 4: A safe agent sandbox lifecycle: scoped identity, a tagged branch with a short TTL, tests on the branch and a human-reviewed migration to production.

Figure 4 shows the lifecycle we recommend. The orchestrator, not the agent, creates the branch, tags it with the agent’s identity and sets a short TTL. The agent receives only an IAM-authenticated, branch-scoped connection. Results flow back as a migration file and a test report. Production changes go through the normal migration pipeline with human review, and the branch expires on its own.

Practical Recommendations

Choose by where production lives, then by what the agent truly needs to see. If your system of record is Aurora PostgreSQL 17 in Ohio, Frankfurt or Mumbai, trial Aurora database branching now. It is the only option here that branches your actual production volume, not a copy you sync to another vendor. If you are on Aurora but on an older engine or another Region, Aurora clones give you the same copy-on-write storage today without the TTL and scale-to-zero conveniences. If you are greenfield Postgres and agents are central to the product, Neon is the most mature choice, with GA status, point-in-time branches and static anonymization. If your estate is MySQL on Vitess, PlanetScale’s deploy requests remain the strongest schema-change workflow. Just do not expect cheap per-agent data copies from it.

Whichever you choose, treat the branch as a sandbox for database state only, and build the other walls yourself. Then run a two-week pilot. Measure branch creation time, cold-start latency, compute hours per task and quota headroom before you scale up.

A short checklist for an agent sandbox database:

  • Give the orchestrator CreateBranch rights. Give agents only branch-scoped, IAM- or token-based connections, never the production password.
  • Tag every branch with an owner, task ID and TTL. Keep TTLs to hours, not days.
  • Mask or anonymize the parent first. Prefer static anonymization for anything whose output reaches a model provider.
  • Block outbound network calls from branches, and keep branch-generated IDs out of shared queues and caches.
  • Route every production change through your normal migration tool and review, never “merge the branch”.
  • Alert on branch count, active compute hours per day and branches older than their expected life.

Frequently Asked Questions

What is Aurora database branching?

Aurora database branching is an AWS feature, in preview since December 2, 2026, for Aurora PostgreSQL 17 and higher. It creates an isolated, writable copy-on-write branch of a cluster. Each branch has its own Aurora Serverless compute that scales to zero and its own read/write endpoint. Branches share unchanged storage pages with the parent and store only changes. They inherit the parent’s encryption, users, roles and dynamic masking policies. Every branch needs a TTL between one hour and 90 days, and there is no extra charge for branching itself.

Is Aurora database branching the same as Aurora cloning?

They share the same copy-on-write storage idea, but they are different products. An Aurora clone is a full, independent cluster that you control. You choose instance types, parameters and read replicas, and it lives until you delete it. A branch is serverless only, inherits the parent’s settings, cannot be reconfigured during the preview, has no backups or Multi-AZ, and must expire through a TTL. AWS positions clones for long-lived QA or analytics copies and branches for short-lived CI and agent work. Clones have a limit of 15 copy-on-write clones per source.

How does Neon branching differ from Aurora database branching?

Neon branches are positions in a shared write-ahead log history served by its pageserver, so you can branch from any moment inside the history window, up to 30 days on Scale. Neon is generally available, runs on AWS and Azure, supports schema-only branches and offers static anonymized branches in beta. Aurora database branching is in preview, AWS-only in three Regions and requires a TTL. It branches your existing Aurora volume, so production does not have to move. Neon charges per extra branch above plan allowances, while Aurora charges only compute and changed data.

Does PlanetScale support data branching?

Partly. PlanetScale Postgres branches start with no schema or data. To get data, you restore a backup into a new branch, which provisions a separate cluster sized like the parent. On Vitess (MySQL), Data Branching can seed a branch with schema and data from the latest backup, but there is no sync in either direction. Seeding from production creates a production-sized branch with replicas. PlanetScale’s strength is schema change through deploy requests on Vitess, not cheap copy-on-write data copies.

Are database branches safe for personal data?

Only if you make them safe. A copy-on-write branch contains exactly the parent’s data. Aurora inherits dynamic data masking, but AWS states that the underlying data stays unchanged in storage, so masking protects only the roles its policies cover. Neon’s anonymized branches rewrite the data permanently, but the feature is in beta with limits on foreign keys and Postgres 19. For agents, mask or anonymize before branching. Restrict roles, and assume anything an agent reads may end up in prompts, traces or logs.

Can an agent merge its branch back into production?

No mainstream Postgres branching product merges branch data into production. The safe pattern is to treat the branch as a test bench. The agent writes a migration or a data-fix script, proves it on the branch, and hands it to your normal pipeline, such as Flyway, Liquibase or your ORM’s migrator, for human review. PlanetScale Vitess deploy requests are the exception for schema only. They apply reviewed schema changes online but never copy rows from the branch.

Further Reading

By Riju — about

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *