Leaving Supabase, Neon or Heroku Postgres: what actually changes
Leaving a platform Postgres means leaving the platform around it. This guide lists, from each platform's own docs, what you lose, what you must replace and the documented ways data leaves, then gives the order of work.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓Docs read 19 Nov 2026
- ✓OSStend runs the PostgreSQL side only
Leaving Supabase, Neon or Heroku Postgres is mostly about what surrounds the database: Supabase's managed Auth, Storage and Realtime, Neon's branching and scale to zero, Heroku's credential and config-var wiring. The data itself leaves by dump or by logical replication, and each platform documents its own route. Facts read from their docs on 19 Nov 2026.
Customers
Partners
What changes when you leave a platform Postgres?
The database engine barely changes; the services and conveniences around it do. You lose platform-owned schemas and roles, branching or scale to zero, and the built-in wiring of credentials and connection strings, and you take on backups, failover and upgrades yourself or hand them to an operator.
Platform Postgres is ordinary PostgreSQL inside a product. Leaving it is a question of three layers: the data, the schema objects the platform owns, and the services that read them. This page covers all three for Supabase, Neon and Heroku Postgres. Each platform has a page that compares destinations (Supabase alternatives, Neon and Heroku Postgres), and this one covers what changes on the way out. Where the data goes next is a choice among managed PostgreSQL services, a self-run server or a cloud service, compared in best Postgres hosting providers.
Supabase, Neon and Heroku Postgres: what you get, what you replace, how data leaves
Each platform adds something plain Postgres lacks, and each documents a route out. Supabase leaves by CLI dump, Neon by pg_dump or logical replication from a publisher, and Heroku by a downloadable logical backup or, on Advanced, logical replication to an external database.
| Platform | What you get that plain Postgres lacks | What you must replace | How data leaves (documented) |
|---|---|---|---|
| Supabase | Auth, Storage, Realtime and Edge Runtime services beside Postgres, API roles (anon, authenticated, service_role) and a Supavisor pooler (Supabase, Supabase) | Services that read the auth and storage schemas, API keys and JWT secrets, auth provider and SMTP settings, Storage files and Edge functions (Supabase) | supabase db dump (pg_dump in a container); the default dump skips managed schemas such as auth and storage (Supabase); physical backups cannot be downloaded (Supabase) |
| Neon | Copy-on-write branches, scale to zero after 5 minutes by default, and a history window of 6 hours on Free, up to 7 days on Launch and 30 days on Scale (Neon, Neon) | Branch-per-environment workflows, autosuspend cost savings, and any settings you cannot change on Neon; its docs say tablespaces are unsupported (Neon) | pg_dump and pg_restore; logical replication from a Neon publisher to an external Postgres, once enabled per project (Neon, Neon) |
| Heroku Postgres | An owner credential one step below superuser, config-var wiring that restarts apps on rotation, followers, and PGBackups (Heroku, Heroku) | DATABASE_URL and credentials in every app, scheduled backups, and followers; followers are documented Heroku-to-Heroku only | pg:backups:capture and pg:backups:download; Advanced databases can publish by logical replication to an external Postgres (Heroku, Heroku) |
Sources linked in each cell, checked 19 Nov 2026. Supabase's roles page does not say whether its postgres role is a superuser, and Heroku's credentials page calls its owner credential one step below superuser.
Moving from Supabase to self-hosted Postgres: what stops working without the platform?
What stops is everything that is not the database: Auth, Storage, Realtime and Edge Functions are services Supabase runs, and a plain Postgres has none of them. Supabase documents a self-hosted stack that includes them, so the choice is to self-host that stack or replace each service.
- The services.
- The self-hosting architecture lists Studio, an API gateway, Auth, PostgREST, Realtime, Storage, imgproxy, postgres-meta, Postgres, Edge Runtime and Supavisor (Supabase, checked 19 Nov 2026). A bare PostgreSQL has none of these, so each one you use is a replacement task.
- What a platform dump carries.
- The platform-to-self-hosted guide dumps roles, schema and data and says the result keeps schema, data, roles, RLS policies, functions, triggers and auth.users (Supabase, checked 19 Nov 2026). The CLI reference says the default dump excludes auth, storage and extension schemas, so check which schemas landed on the other side.
- What it does not carry.
- Storage objects, Edge functions, JWT secrets and API keys, auth provider settings, SMTP settings and custom domains are listed as separate work (Supabase, checked 19 Nov 2026). Custom role passwords are not in backups; reset them after a restore (Supabase, checked 19 Nov 2026).
- Connection strings.
- The direct connection is db.[project-ref].supabase.co on 5432, IPv6 by default; the shared Supavisor pooler uses ports 5432 (session) and 6543 (transaction) with the user postgres.[project-ref], and the shared pooler is IPv4 only (Supabase, checked 19 Nov 2026). Applications must move to the new host and user format, and drop transaction-mode assumptions only if the new pooler differs.
- Roles.
- Supabase's API roles, anon, authenticated and service_role, and the service roles supabase_auth_admin and supabase_storage_admin are Supabase conventions (Supabase, checked 19 Nov 2026). If row-level security policies name them, create them on the new server or rewrite the policies.
The self-hosting route is walked through in self-hosted Supabase, and what the hosted plans cost is in Supabase pricing. For the head-to-head with Neon, see Neon vs Supabase.
Moving off Neon: what does leaving a serverless Postgres change?
Leaving Neon changes the compute model more than the data. You give up branching and scale to zero, and you take on fixed compute, connection limits and an exit path: pg_dump, or logical replication once you enable it on the project, which cannot be reverted.
- Scale to zero.
- Compute suspends after 5 minutes of inactivity by default and resumes within a few hundred milliseconds; it applies to computes up to 16 CU (Neon, checked 19 Nov 2026). On a fixed server nothing suspends, so the savings go with it.
- Session state.
- Session settings, prepared statements, advisory locks and LISTEN/NOTIFY state are lost when idle connections close, and unlogged and temporary tables are lost on restart or scale to zero (Neon, checked 19 Nov 2026). Code that grew around that behaviour may need review on a server that never suspends.
- Compute limits.
- max_connections follows compute size, from a floor of 100 to a ceiling of 4,000, and Neon recommends connection pooling (Neon, checked 19 Nov 2026). Size the new server against your real connection count; see Postgres connection limits.
- Logical replication as publisher.
- Enabling it is per project, changes wal_level to logical for all databases, restarts all computes and cannot be reverted; max_replication_slots and max_wal_senders are 10 and cannot be changed; slots with no progress for about 40 hours are removed; a connected subscriber keeps the compute awake (Neon, checked 19 Nov 2026).
- Subscribers.
- Use a direct connection string, not the one with the -pooler suffix, because logical replication does not work through poolers (Neon, checked 19 Nov 2026).
- The dump route.
- pg_dump and pg_restore are the documented manual backup path; the backups page does not mention physical backups or snapshots, so ask Neon Support about anything else (Neon, checked 19 Nov 2026).
Moving off Heroku Postgres: how do credentials, backups and followers leave?
Heroku Postgres leaves by backup download, or on Advanced by logical replication to an external Postgres. The default credential is not a superuser, rotating credentials restarts your apps, and followers are documented only for Heroku-to-Heroku use, so plan the cutover around those three facts.
- No superuser.
- Every database has an owner credential that the docs describe as one step below superuser; Essential plans have only that credential (Heroku, checked 19 Nov 2026). Tools that need superuser statements need a different plan or host.
- Rotation.
- Rotating credentials updates the config vars on affected apps and restarts them; old credentials expire after connections close, waiting up to 30 minutes, or immediately with --force. A database can hold up to 120 credentials (Heroku, checked 19 Nov 2026). The page does not say Heroku rotates on its own.
- Backups.
- pg:backups:capture creates a logical backup in a compressed binary format; pg:backups:url and pg:backups:download fetch it, and the URL expires after 60 minutes. Heroku recommends PGBackups only for moderately loaded databases up to 20 GB and not for Advanced, and stores backups in the U.S. (Heroku, checked 19 Nov 2026).
- Logical replication.
- Advanced databases can publish to an external Postgres: enable publishing, create a publication, and use the publisher credential; the default credential has no replication privilege (Heroku, checked 19 Nov 2026). The page documents Advanced only and does not mention other tiers.
- Followers.
- They are read-only copies for Heroku databases, not available on Essential, and pg:unfollow turns one into an independent, writable fork that cannot be undone (Heroku, checked 19 Nov 2026). The page does not say an external replica can follow.
- Extensions.
- Only extensions on the platform's allowed list install, viewed with SHOW extwlist.extensions on Standard and Advanced (Heroku, checked 19 Nov 2026). Compare that list with what your schema uses before you pick a destination.
The enterprise side of this exit, and the platform's own direction, are on the Heroku Postgres alternative page; if you want alternatives to Neon, see Neon alternatives.
In what order should the work go, and what should you test?
Inventory what depends on the platform first, choose the destination second, rehearse the data move third, and cut over last. The data move is usually the easy part; the services and credentials around it take the time.
Inventory the platform-owned parts
List every schema, role and service your app uses that the platform owns: Supabase's auth and storage schemas, Neon branches and autosuspend, Heroku config vars and followers. Mark each one keep, replace or drop.
Pick the destination
Choose among a cloud service, a vendor-run service and a designed cluster by running the checks in what to look for in a managed PostgreSQL service, including extension availability from Postgres extensions on managed services.
Rehearse the data move
Restore a dump onto the destination and time it. Then try the live route: logical replication where the platform allows it, so the old and new databases stay in sync until the switch.
Rebuild the surrounding services
Replace or self-host each service from step one. Reset custom role passwords, issue new keys and rewrite connection strings, including pooler user formats.
Test, then cut over
Compare row counts and sequence values, run the application against the new server, check extension versions, and only then switch traffic. Keep the old database untouched until the rollback window closes.
From our on-call engineers: what we check on an exit from a platform database
These checks restate the Supabase, Neon and Heroku documentation read on 19 Nov 2026 as steps we would put in a runbook. They are documentation, not a record of past moves, and we quote no customer figure.
- ✓Sequences are compared after the data load, because logical replication does not carry ongoing sequence values.
- ✓Every role the data references exists on the new server before the schema is restored, including platform roles that policies name.
- ✓The pooler mode the application assumed is written down, because transaction mode drops session state.
- ✓Replication slots on the old platform are dropped when the move ends, so the source does not keep WAL.
- ✓A restore test runs from the dump on the destination, not only a replication test, so there is a second way back.
Where OSStend fits, and where it does not
OSStend runs the PostgreSQL side of a platform exit: a designed cluster, the move by replication with both sides live, and 24/7 operation. It does not run Supabase's Auth, Storage or Realtime services, and it is not the right place to recreate a Neon or Heroku developer workflow.
Contact us if
- ✓The database has outgrown the platform: settings, extensions, privileges, version timing or location. See managed PostgreSQL.
- ✓You want the replication-based move run for you, with the cutover owned by an engineer: the Move step is the same method used for other sources.
- ✓The database must sit in your own cloud account or data center: bring your own cloud.
Not a fit if
- ✕You rely on Supabase Auth, Storage or Realtime: OSStend does not run those services, so plan to self-host Supabase or replace them.
- ✕You use Neon branching per pull request: that is a Neon feature, not one OSStend replicates.
- ✕The app and database are happy on the platform: staying is cheaper and simpler.
FAQ
Can I move from Supabase to self-hosted Postgres?
Yes. Dump roles, schema and data with the Supabase CLI and restore them with psql, then handle Storage objects, Edge functions, keys and provider settings separately (Supabase, checked 19 Nov 2026). The full route is in self-hosted Supabase.
What is a good Neon alternative?
Any PostgreSQL host that fits your compute and extension needs. See Neon alternatives for a comparison, and best Postgres hosting providers for the wider list.
What is a good Heroku Postgres alternative?
A managed PostgreSQL service on a cloud or a designed cluster, depending on how much control you need. The Heroku Postgres alternative page covers the enterprise side of the exit.
Can Neon replicate to another Postgres?
Yes. Logical replication can be enabled per project and Neon can stream to an external Postgres; enabling it restarts computes and cannot be reverted (Neon, checked 19 Nov 2026).
Does Heroku let me connect an external replica?
Heroku documents publishing to an external Postgres on Heroku Postgres Advanced (Heroku, checked 19 Nov 2026). Its followers page covers Heroku-to-Heroku followers only, and Essential plans cannot have followers.
Will OSStend run Supabase Auth or Storage for me?
No. OSStend runs the PostgreSQL database only, not Supabase's Auth, Storage, Realtime or Edge Functions. You can self-host those or replace them.
PostgreSQL is a registered trademark of the PostgreSQL Community Association of Canada. Amazon RDS, Amazon Aurora and AWS are trademarks of Amazon. Google Cloud SQL and AlloyDB are trademarks of Google. Azure is a trademark of Microsoft. Crunchy Bridge, Aiven, Neon, Supabase, Heroku and DigitalOcean are trademarks of their respective owners. OSStend is not affiliated with or endorsed by these projects or vendors, and their names are used only to say what each documents.
Related pages
- AlternativeSupabase alternative for production PostgreSQLA Supabase alternative for the database layer: dedicated PostgreSQL in your cloud account or data center, run 24/7. Supabase plans checked 23 Nov 2026.
- AlternativeNeon pricing at production scale, and alternativesNeon pricing at production scale from its list prices, checked 15 Nov 2026, and dedicated PostgreSQL in your cloud or data center, run 24/7 by OSStend.
- AlternativeHeroku alternative for production PostgresA Heroku alternative for the database side of an enterprise exit: PostgreSQL tailored to the workload, run 24/7 by engineers in your cloud or data center.
- PostgreSQLManaged PostgreSQL service and Postgres hostingManaged PostgreSQL service, compared: how to choose between RDS, Aiven, Crunchy Bridge, Neon and a tailored cluster run 24/7 in your cloud or ours.
- GuideBest Postgres hosting providers in 2026Best Postgres hosting providers in 2026: RDS, Aurora, Cloud SQL, AlloyDB, Azure, Crunchy Bridge, Aiven, Neon and Supabase, from their docs, with how we chose.
- GuideSelf-hosted Supabase in production: what it takesSelf-hosted Supabase in production: the services you must run, where Postgres is the hard part, and when a managed database layer is the better split.
Take your platform exit to an engineer
45 minutes: your schemas, roles, services and extensions are reviewed, and an engineer says what moves by replication and what has to be rebuilt.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





