Migrate From Neon or PlanetScale to Postgres on Kubernetes
When moving off Neon or PlanetScale Postgres to a self-managed database on Kubernetes in your own cloud makes sense, when it does not, and how to do it with CloudNativePG, backups and PITR.
Move off Neon or PlanetScale when you need the database inside your own cloud account, when an always-on workload makes usage pricing expensive, or when you already run Kubernetes and have someone who will own Postgres on-call. Stay if you rely on scale-to-zero, instant branching for every pull request, or a database team you do not have. For most teams the right target is a managed Postgres in their own account, such as Amazon RDS. Self-managed Postgres on Kubernetes, with an operator like CloudNativePG, is the right target for a smaller group that wants the database on the same cluster and tooling as the apps.
I run Qovery, and we deploy apps next to both kinds of database every day. Below is how I would decide, then how I would run the move: logical replication from Neon or PlanetScale into a CloudNativePG cluster, backups to object storage, point-in-time recovery, and a cutover you can roll back.
Key points:
Neon and PlanetScale are good at what they do. Neon (now "from Databricks") gives you scale-to-zero, branching and instant restore. PlanetScale Postgres gives you a primary with two replicas from $15 a month, and single-node databases from $5 (checked 30 Nov 2026).
Self-managed means you own the pager. Failover, backups, restores, major upgrades, disk growth and connection limits become your job. An operator automates most of the mechanics. It does not answer the 3 a.m. page.
CloudNativePG is the default operator. It is a CNCF Incubating project, the current stable release is 1.30.2, and it handles failover, rolling updates, backups through the Barman Cloud plugin, and point-in-time recovery.
The migration is logical replication plus a short write freeze. Neon supports logical replication to an external Postgres, and so does PlanetScale Postgres. CloudNativePG can declare the subscription and copy sequences for you.
What Qovery does here: Qovery deploys the apps and the CloudNativePG Helm charts on Kubernetes in your own cloud account, and offers Amazon RDS for PostgreSQL as a Blueprint if you would rather not run Postgres yourself. Qovery does not operate CloudNativePG for you.
When does moving from Neon or PlanetScale to self-managed Postgres make sense?
It makes sense when one of these is true and you have someone who will own the database:
The data has to sit in your cloud account. A customer contract, a data residency rule or a security review asks where the database runs and who can reach the disks. Neon and PlanetScale's standard plans run in their accounts.
The workload is always on. Usage pricing is great for databases that sleep. A database that serves traffic 24 hours a day pays for every hour. On Neon, 2 CU (about 8 GB of RAM) running all month costs about $155 on Launch at $0.106 per CU-hour, and about $324 on Scale at $0.222 per CU-hour, before storage and history (checked 30 Nov 2026, Neon pricing).
You want credits and commitments to apply. Compute in your own AWS, GCP or Azure account is paid by Activate credits and Savings Plans. A third-party database invoice is not.
The apps already run on Kubernetes in your account. Same network, same observability, same deployment tooling, and no cross-provider latency or egress between app and database.
When should you stay on Neon or PlanetScale?
Stay when the managed features are doing real work for you:
Scale-to-zero. Neon suspends compute after 5 minutes of inactivity on Free and Launch (Neon pricing). If most of your databases are dev, preview or per-tenant databases that sleep, a self-managed cluster runs 24/7 and costs more.
Branching per pull request. Neon branches are copy-on-write and instant. Reproducing that on Kubernetes means restoring a backup or cloning a volume per preview, which is slower and uses real disk.
Nobody wants Postgres on-call. If your team has no one who has done a failover, a restore or a major upgrade under pressure, a managed service is cheaper than the incident.
You need PlanetScale's operations features. Non-blocking schema changes, query insights and Vitess sharding for MySQL are not something an operator gives you.
There is also a middle option for the "must be in my account" case. PlanetScale Managed runs PlanetScale, including Postgres, in a dedicated AWS member account, GCP project or Azure subscription that you own, operated by PlanetScale's team. It is sales-led: you cannot set it up yourself (PlanetScale docs).
Managed Postgres in your account or self-managed on Kubernetes?
These are different jobs. Pick based on who will own the database.
Neon / PlanetScale (their account)
Managed Postgres in your account (Amazon RDS, Scaleway)
Self-managed on Kubernetes (CloudNativePG)
Where the data lives
Vendor account
Your account
Your account, on your cluster
Who handles failover and patching
Vendor
Cloud provider
The operator, and you when it fails
Backups and PITR
Built in (Neon history window up to 30 days on Scale)
Built in (RDS automated backups, 0 to 35 days)
You configure WAL archiving to object storage
Scale-to-zero
Yes on Neon
No
No
Branching
Instant on Neon
Snapshots and restores
Restores or volume clones
Credits and commitments apply
No
Yes
Yes
Extensions and Postgres config
Vendor-supported list
Provider-supported list
Anything you can put in the image
Best for
Spiky, small or many databases
Teams that want the account without the pager
Teams that already run Kubernetes and want one platform
If you are not sure, start with managed Postgres in your account. You get the residency and the credits, and you can move to CloudNativePG later with the same logical replication method described below.
What does running Postgres on Kubernetes with CloudNativePG involve?
CloudNativePG is an operator: you describe a Cluster and it creates the primary and replicas, handles failover, rolls out updates one instance at a time, and manages backups. It is a CNCF Incubating project, and 1.30.2 was the latest stable release on 30 Nov 2026 (GitHub).
A production cluster needs four things settled before any data moves:
Storage. A storage class backed by block volumes (EBS gp3 on AWS, for example) with volume expansion enabled. Size the disk for data plus WAL plus growth.
Instances. Three instances (one primary, two replicas) spread across availability zones. Fewer is a test setup.
Backups. WAL archiving and base backups to object storage. Since 1.26, the recommended path is the Barman Cloud plugin. The in-tree barmanObjectStore integration is deprecated, and 1.31 is the last minor release that supports it (CloudNativePG backup docs).
Connections. Your app's connection count. Neon and PlanetScale give you a pooler. With CloudNativePG, add a Pooler (PgBouncer) resource if your app opens many short connections.
Here is a minimal production-shaped cluster with WAL archiving to S3 through the plugin. On EKS, give the cluster's service account an IAM role for the bucket (IRSA) rather than static keys, as below. Back the bucket with versioning and object lock, as the plugin docs recommend.
Run your apps next to your database, in your own cloud.
Qovery deploys your apps, jobs and Helm charts, including CloudNativePG, on Kubernetes in your own AWS, GCP, Azure or Scaleway account, or on a cluster you already run. Start on the Free plan, no credit card.
How do backups and point-in-time recovery work once you leave Neon?
On Neon, restore is a slider: pick a time in the history window and get a branch. With CloudNativePG, point-in-time recovery (PITR) comes from two things in object storage: a base backup, and the continuous WAL archive since that backup. To restore, you create a new cluster that bootstraps from the archive and replays WAL up to a target time:
Restore into a new cluster, then copy back what you need. Same approach as on RDS: never overwrite the running database while you are still figuring out what went wrong.
Test a restore every month. A backup you have never restored is a hope. Put the restore drill on the calendar and time it, because that number is your real recovery time.
Keep backups in a separate bucket with its own retention. CloudNativePG can also take Kubernetes volume snapshots if your storage class supports them, which makes restores of large databases faster. Snapshots complement the WAL archive, they do not replace it.
How do you migrate from Neon or PlanetScale to CloudNativePG?
Use logical replication: copy the schema, stream the data while the old database keeps serving traffic, then freeze writes for the minutes it takes to catch up and switch. Small databases (a few GB) can skip replication and use a dump and restore during a maintenance window.
1. Prepare the source.
Neon: enable logical replication in the project settings. This changes wal_level to logical for every database in the project, cannot be reverted, and restarts the computes. Use a direct connection string, not the pooled one, and expect the compute to stay awake while a subscriber is connected. Neon removes replication slots that stay inactive for about 40 hours (Neon docs).
PlanetScale Postgres: supports logical replication as a source (PlanetScale docs). Create a role with replication rights and a publication on the tables you are moving.
Then create the publication on the source:
SQL
CREATE PUBLICATION migration_pub FOR ALL TABLES;
2. Copy the schema. Logical replication does not copy DDL. CloudNativePG can import the schema only when it creates the cluster: add bootstrap.initdb.import with schemaOnly: true to the app-db manifest above and point it at the source as an external cluster. It runs pg_dump from the destination cluster (CloudNativePG import docs).
3. Declare the subscription. CloudNativePG manages subscriptions as resources, which keeps the migration in Git:
neon-source is an entry in the cluster's externalClusters section with the source host, user and password secret, the same entry the schema import uses. The initial copy runs first, then changes stream continuously. Watch replication lag on the source in pg_stat_replication until it stays near zero.
4. Rehearse. Point a staging copy of the app at the new cluster, run the test suite, and check row counts and a few checksums per table.
5. Cut over.
Put the app in read-only mode or stop writes.
Wait for lag to reach zero.
Sync sequences, which logical replication does not copy: kubectl cnpg subscription sync-sequences --subscription from-neon app-db.
Switch the app's DATABASE_URL to the new cluster and redeploy.
Drop the subscription once you are confident.
6. Keep the way back open. Leave the Neon or PlanetScale database running, read-only, for a week. If you need a real rollback path with data written after cutover, set up replication in the other direction before you switch, and test it.
What does self-managed Postgres actually cost?
Compare the full bill, not the instance price.
Line
Neon / PlanetScale
CloudNativePG in your account
Compute
Neon: $0.106 (Launch) or $0.222 (Scale) per CU-hour. PlanetScale Postgres HA: from $15/mo; 2 vCPU and 16 GiB at $286/mo on arm64 (us-east-1)
3 nodes sized for the database, at your provider's price, minus credits and Savings Plans
Storage
Neon $0.35/GB-month; PlanetScale storage billed on top
3 block volumes (one per instance)
Backups and history
Neon instant restore $0.20/GB-month
Object storage for base backups and WAL
Network
Neon includes 500 GB egress per project on paid plans
Cross-AZ replication traffic inside your cloud
People
Included in the price
A share of an engineer's time for upgrades, restores, tuning and on-call
Prices checked 30 Nov 2026 on Neon and PlanetScale. Price your own column in your cloud provider's calculator for your region.
Two things to keep in mind. You pay for three copies of the data on block storage, because each CloudNativePG instance has its own volume. And the people line is the one that decides it: if a database incident costs a senior engineer two days a quarter, that belongs in the comparison.
How does Qovery help with a move to Postgres in your own cloud?
Qovery runs the layer around the database, not the database engine itself:
Your apps, on Kubernetes in your account. Qovery creates a cluster in your AWS, GCP, Azure or Scaleway account, or connects to one you already run through BYOK, and deploys your apps, workers and cron jobs from Git.
CloudNativePG as Helm services. Qovery deploys any Helm chart (Helm docs), so the CloudNativePG operator, the Barman Cloud plugin and the cluster chart from the CloudNativePG chart repository run as services in an environment, with their values in Git. Store the connection string as a secret variable on the apps that use it.
Migrations as lifecycle jobs. Run schema migrations before each deploy with a lifecycle job.
Managed Postgres if you change your mind. The Amazon RDS for PostgreSQL Blueprint creates RDS in the account behind your cluster, with Multi-AZ on by default, 14 days of automated backups by default, and a documented point-in-time restore guide. On Scaleway, there is a Scaleway Managed PostgreSQL Blueprint.
What Qovery does not do: it does not tune, fail over or back up a CloudNativePG cluster for you. The operator does the mechanics, and your team owns the database. Qovery's built-in container databases are for development and tests only: they run as a single instance with no automated backups (database docs).
Then ask: "Deploy this app to my AWS account with Qovery. Add the CloudNativePG operator and the Barman Cloud plugin as Helm services, and a three-instance cluster that archives WAL to S3. Show me the plan before you create anything." Review the values, approve, and run the replication and cutover steps above yourself. A database cutover is a step I would keep a human on.
To try it on your own cluster, start on the Free plan: no credit card, one cluster of your own.
Frequently Asked Questions
Is it worth moving from Neon to self-hosted Postgres?
Yes, if the database must live in your own cloud account, runs around the clock, or you want your credits and commitments to pay for it, and someone on the team will own it. No, if you rely on scale-to-zero, instant branching for previews, or you have no one for database on-call. Managed Postgres in your own account, such as Amazon RDS, is the middle option.
Can I migrate from Neon without downtime?
With a short write freeze, yes. Enable logical replication on the Neon project, subscribe from the new database, wait for replication lag to reach zero, stop writes, sync sequences and switch the connection string. Enabling logical replication on Neon is permanent for the project and restarts its computes, so plan it.
Does PlanetScale support Postgres now?
Yes. PlanetScale sells Postgres clusters with a primary and two replicas from $15 a month and single-node databases from $5 a month in AWS us-east-1 (checked 30 Nov 2026), next to its Vitess (MySQL) product. PlanetScale Managed can run in your own AWS, GCP or Azure account through a sales-led setup.
What is the best Postgres operator for Kubernetes?
CloudNativePG is the most common choice in 2026: it is a CNCF Incubating project, it handles failover, rolling updates, backups and PITR, and it manages logical replication declaratively. Other operators exist, such as Crunchy Data's PGO and Zalando's postgres-operator. Pick one your team can operate and test restores with.
How does point-in-time recovery work with CloudNativePG?
CloudNativePG archives WAL and base backups to object storage through the Barman Cloud plugin. To recover, you create a new cluster with bootstrap.recovery, point it at the archive and set recoveryTarget.targetTime. It restores the base backup and replays WAL up to that time.
Can Qovery manage Postgres for me?
Qovery provisions managed Postgres in your own account through Blueprints, such as Amazon RDS for PostgreSQL and Scaleway Managed PostgreSQL, where the cloud provider runs backups and failover. It can also deploy CloudNativePG on your cluster as Helm services, but then your team operates the database.
Romaric founded Qovery to make Kubernetes accessible to every engineering team. He writes about platform strategy, developer experience, and the future of cloud infrastructure.
Next step
Run your apps next to your database, in your own cloud.
Qovery deploys your apps, jobs and Helm charts, including CloudNativePG, on Kubernetes in your own AWS, GCP, Azure or Scaleway account, or on a cluster you already run. Start on the Free plan, no credit card.