How to move a Postgres database to Quotura
Create a database in the Quotura console, open its Import tab and paste the connection string of the database you are moving. Check connection shows its size, schemas and extensions and anything in the way; Import then copies it server to server. The copy goes into a scratch database first, so if anything fails, nothing changes. Then point your app at the new connection string.
Last reviewed
Steps
- In the Quotura console, create a project and a database, on a plan with room for the data.
- Find the connection string of your current database (see below). Use the direct connection, not a connection pooler.
- Open the database, choose Import, paste the connection string and press Check connection.
- If the check is clear, press Import and confirm. The import replaces everything in the Quotura database.
- When it says "Imported", browse the tables, then switch your app to the Quotura connection string (or the data API) and deploy.
- To keep downtime short, stop writes to the old database (for example, a maintenance mode), import again, then switch.
Where to find the connection string
- Heroku: Settings, Config Vars,
DATABASE_URL(or runheroku config:get DATABASE_URL). - Supabase: Project Settings, Database, Connection string, URI, the direct connection on port 5432. Import only the
publicschema: Supabase keeps its ownauthandstorageschemas. - Neon: the Connection Details panel, with "Pooled connection" turned off.
- Amazon RDS:
postgresql://user:password@your-instance.region.rds.amazonaws.com:5432/dbname. The instance must be publicly accessible, and its security group must allow outside connections while you import. - Railway: your Postgres service, Variables,
DATABASE_PUBLIC_URL. - Any other host: a
postgresql://user:password@host:5432/databasestring that can be reached from the internet.
What moves, and what does not
- Moves: tables, data, indexes, constraints, views, sequences, functions, triggers, and extensions that Quotura offers (such as citext, pgcrypto and hstore).
- Does not move: database users, passwords and grants (your app uses the new database's own credentials), and host-specific features such as Supabase Auth and Storage or Neon branches.
- Postgres versions: sources up to version 16 are supported for now.
- Security: the connection string is used once for the copy and never stored. The copy uses TLS unless the string says
sslmode=disable.
Frequently asked questions
Does importing take my app offline?
No. The source database is only read. Your app keeps using it until you switch to Quotura.
What if the import fails?
The Quotura database is left exactly as it was, and the Import tab says what stopped it, for example an extension Quotura does not offer or a Supabase role referenced by a policy.
Can I do it from the command line instead?
Yes. Every Quotura database has a standard connection string, so pg_dump --format=custom --no-owner "$OLD_URL" | pg_restore --no-owner --no-privileges -d "$QUOTURA_URL" works too.
Is there a size limit?
The data must fit your plan's storage. The check shows the size before anything is copied.